toggleLED() — Maple v0.0.10beta Documentation

### Navigation

- next
- previous |
- LeafLabs |
- Index »
- Complete Language Index »

# toggleLED()

Switches the LED from off to on, or on to off.

## Library Documentation

void toggleLED()

  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()

## See Also

- BOARD_LED_PIN
- togglePin()

### Navigation

- next
- previous |
- LeafLabs |
- Index »
- Complete Language Index »