Switches the LED from off to on, or on to off.
Toggle the LED.
If the LED is on, turn it off. If it is off, turn it on.
The LED must its mode set to OUTPUT. This can be accomplished portably over all LeafLabs boards by calling pinMode(BOARD_LED_PIN, OUTPUT) before calling this function.
See: | pinMode() |
---|