boardUsesPin() — Maple v0.0.11 Documentation

### Navigation

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

# 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

## See Also

- Board-specific values
- boardUsedPins
- BOARD_LED_PIN
- toggleLED()
- BOARD_BUTTON_PIN
- isButtonPressed()
- waitForButtonPress()

### Navigation

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