Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Enumerations | Functions
Buttons Namespace Reference

Enumerations

enum class  Pull : uint8_t { None , Up , Down }
 
enum class  Event : uint8_t {
  None = 0 , Next , Previous , Home ,
  Action , ActionAlt , ActionLong
}
 

Functions

void begin (int topPin, int bottomPin, Pull topPull, Pull bottomPull, bool topActiveLow, bool bottomActiveLow)
 
void tick ()
 
Event takeEvent ()
 
bool hasPendingEvents ()
 
const char * name (Event event)
 

Enumeration Type Documentation

◆ Event

enum class Buttons::Event : uint8_t
strong
Enumerator
None 
Next 
Previous 
Home 
Action 
ActionAlt 
ActionLong 

◆ Pull

enum class Buttons::Pull : uint8_t
strong
Enumerator
None 
Up 
Down 

Function Documentation

◆ begin()

void Buttons::begin ( int  topPin,
int  bottomPin,
Pull  topPull,
Pull  bottomPull,
bool  topActiveLow,
bool  bottomActiveLow 
)

◆ hasPendingEvents()

bool Buttons::hasPendingEvents ( )

◆ name()

const char * Buttons::name ( Event  event)

◆ takeEvent()

Event Buttons::takeEvent ( )

◆ tick()

void Buttons::tick ( )