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

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

#include <Pololu3piPlus32U4Buttons.h>

Inheritance diagram for Pololu3piPlus32U4::ButtonC:
PushbuttonBase

Public Member Functions

virtual bool isPressed ()
 
void waitForPress ()
 
void waitForRelease ()
 
void waitForButton ()
 
bool getSingleDebouncedPress ()
 
bool getSingleDebouncedRelease ()
 

Static Public Attributes

static const uint8_t buttonCPin = 17
 The pin number for the pin conencted to button C on the 3pi+ 32U4. More...
 

Detailed Description

Interfaces with button C on the 3pi+ 32U4.

The pin used for button C is also used for the RX 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 65 of file Pololu3piPlus32U4Buttons.h.

Member Data Documentation

◆ buttonCPin

const uint8_t Pololu3piPlus32U4::ButtonC::buttonCPin = 17
static

The pin number for the pin conencted to button C on the 3pi+ 32U4.

Definition at line 69 of file Pololu3piPlus32U4Buttons.h.


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