Pololu3piPlus32U4 library
Public Member Functions | Static Public Attributes | List of all members
Pololu3piPlus32U4::ButtonB Class Reference

Interfaces with button B on the 3pi+ 32U4. More...

#include <Pololu3piPlus32U4Buttons.h>

Inheritance diagram for Pololu3piPlus32U4::ButtonB:
PushbuttonBase

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...
 

Detailed Description

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.

Member Data Documentation

◆ buttonBPin

const uint8_t Pololu3piPlus32U4::ButtonB::buttonBPin = IO_D5
static

The pin number for the pin connected to button B on the 3pi+ 32U4.

Definition at line 42 of file Pololu3piPlus32U4Buttons.h.


The documentation for this class was generated from the following file: