Core Native Arduino 0.0.2
Gly Engine for Arduino
Loading...
Searching...
No Matches
GlyInputUart< TSerial > Class Template Reference

#include <GlyInputUart.h>

Collaboration diagram for GlyInputUart< TSerial >:

Classes

struct  Button
 

Public Member Functions

 GlyInputUart (TSerial *serial, std::initializer_list< Button > buttons)
 
bool update ()
 
void setTimeout (uint16_t ms)
 
size_t getCount () const
 
const char * getName (size_t i) const
 
bool isUpdated (size_t i) const
 
bool isPressed (size_t i) const
 
- Public Member Functions inherited from GlyInputBase
virtual ~GlyInputBase ()=default
 

Class Documentation

◆ GlyInputUart::Button

struct GlyInputUart::Button
template<typename TSerial>
struct GlyInputUart< TSerial >::Button
Class Members
uint32_t code
unsigned long last_pressed = 0
const char * name
bool pressed = false
bool updated = false

Constructor & Destructor Documentation

◆ GlyInputUart()

template<typename TSerial>
GlyInputUart< TSerial >::GlyInputUart ( TSerial * serial,
std::initializer_list< Button > buttons )
inline

Member Function Documentation

◆ getCount()

template<typename TSerial>
size_t GlyInputUart< TSerial >::getCount ( ) const
inlinevirtual

Implements GlyInputBase.

◆ getName()

template<typename TSerial>
const char * GlyInputUart< TSerial >::getName ( size_t i) const
inlinevirtual

Implements GlyInputBase.

◆ isPressed()

template<typename TSerial>
bool GlyInputUart< TSerial >::isPressed ( size_t i) const
inlinevirtual

Implements GlyInputBase.

◆ isUpdated()

template<typename TSerial>
bool GlyInputUart< TSerial >::isUpdated ( size_t i) const
inlinevirtual

Implements GlyInputBase.

◆ setTimeout()

template<typename TSerial>
void GlyInputUart< TSerial >::setTimeout ( uint16_t ms)
inline

◆ update()

template<typename TSerial>
bool GlyInputUart< TSerial >::update ( )
inlinevirtual

Implements GlyInputBase.


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