VizBlocks
Public Member Functions | Static Public Attributes | List of all members
RotaryEncoder Class Reference

#include <RotaryEncoder.h>

Public Member Functions

 RotaryEncoder (int pinA, int pinB, int id=99)
 
void initInterrupts (void(*function)())
 
void setEventHandler (void(*function)(RotaryEncoder *, uint8_t, int))
 
int getPostition ()
 
int getId ()
 
void setPosition (int value)
 
void check ()
 
void ICACHE_RAM_ATTR tick ()
 

Static Public Attributes

static const uint8_t kEventStableUpdate = 0
 
static const uint8_t kEventUnstableUpdate = 1
 

Constructor & Destructor Documentation

◆ RotaryEncoder()

RotaryEncoder::RotaryEncoder ( int  pinA,
int  pinB,
int  id = 99 
)
inline

Member Function Documentation

◆ check()

void RotaryEncoder::check ( )
inline

◆ getId()

int RotaryEncoder::getId ( )
inline

◆ getPostition()

int RotaryEncoder::getPostition ( )
inline

◆ initInterrupts()

void RotaryEncoder::initInterrupts ( void(*)()  function)
inline

◆ setEventHandler()

void RotaryEncoder::setEventHandler ( void(*)(RotaryEncoder *, uint8_t, int)  function)
inline

◆ setPosition()

void RotaryEncoder::setPosition ( int  value)
inline

◆ tick()

void ICACHE_RAM_ATTR RotaryEncoder::tick ( )
inline

Member Data Documentation

◆ kEventStableUpdate

const uint8_t RotaryEncoder::kEventStableUpdate = 0
static

◆ kEventUnstableUpdate

const uint8_t RotaryEncoder::kEventUnstableUpdate = 1
static

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