Pololu3piPlus32U4 library
|
Interfaces with button B on the 3pi+ 32U4. More...
#include <Pololu3piPlus32U4Buttons.h>
Public Member Functions | |
virtual bool | isPressed () |
void | waitForPress () |
void | waitForRelease () |
void | waitForButton () |
bool | getSingleDebouncedPress () |
bool | getSingleDebouncedRelease () |
Static Public Attributes | |
static const uint8_t | buttonBPin = IO_D5 |
The pin number for the pin connected to button B on the 3pi+ 32U4. More... | |
Interfaces with button B on the 3pi+ 32U4.
The pin used for button B is also used for the TX LED.
This class temporarily disables USB interrupts because the Arduino core code has USB interrupts enabled that sometimes write to the pin this button is on.
This class temporarily sets the pin to be an input without a pull-up resistor. The pull-up resistor is not needed because of the resistors on the board.
Definition at line 38 of file Pololu3piPlus32U4Buttons.h.
|
static |
The pin number for the pin connected to button B on the 3pi+ 32U4.
Definition at line 42 of file Pololu3piPlus32U4Buttons.h.