boardUsesPin()

Each LeafLabs board connects some pins to external hardware. The most important examples of this are the pins connected to the built-in LED and button. You can check if a board uses a particular pin using this function.

Library Documentation

bool boardUsesPin(uint8 pin)

Test if a pin is used for a special purpose on your board.

Parameters:
  • pin -

    Pin to test

Return:

true if the given pin is in boardUsedPins, and false otherwise.

See:

boardUsedPins