Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Bounce Class Reference

Public Member Functions

 Bounce (uint8_t pin, unsigned long interval_millis)
 
void interval (unsigned long interval_millis)
 
int update ()
 
void rebounce (unsigned long interval)
 
int read ()
 
void write (int new_state)
 
unsigned long duration ()
 
bool risingEdge ()
 
bool fallingEdge ()
 

Protected Member Functions

int debounce ()
 

Protected Attributes

unsigned long previous_millis
 
unsigned long interval_millis
 
unsigned long rebounce_millis
 
uint8_t state
 
uint8_t pin
 
uint8_t stateChanged