togglePin()

Switches a digital output pin from HIGH to LOW, or from LOW to HIGH.

Library Documentation

void togglePin(uint8 pin)

Toggles the digital value at the given pin.

The pin must have its mode set to OUTPUT.

Parameters:
  • pin -

    the pin to toggle. If the pin is HIGH, set it LOW. If it is LOW, set it HIGH.

See:

pinMode()

See Also

Table Of Contents