Searched refs:ledState (Results 1 – 1 of 1) sorted by relevance
30 var ledState = true; //Boolean to hold the state of Led variable34 …myLed.write(ledState?1:0); //if ledState is true then write a '1' (high) otherwise write a '0' (lo…35 ledState = !ledState; //invert the ledState