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

#include <RotaryEncoder.hpp>

Public Member Functions

 RotaryEncoder (int pinA, int pinB, int id=99)
 
void initInterrupts (void(*function)())
 What does this do? More...
 
void setEventHandler (void(*function)(RotaryEncoder *, uint8_t, int))
 What does this do? More...
 
int getPostition ()
 What does this do? More...
 
int getId ()
 What does this do? More...
 
void setPosition (int value)
 What does this do? More...
 
void check ()
 What does this do? More...
 
void ICACHE_RAM_ATTR tick ()
 

Static Public Attributes

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

Detailed Description

[void description]

Parameters
_cb[description]

Constructor & Destructor Documentation

◆ RotaryEncoder()

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

Member Function Documentation

◆ check()

void RotaryEncoder::check ( )

What does this do?

◆ getId()

int RotaryEncoder::getId ( )

What does this do?

◆ getPostition()

int RotaryEncoder::getPostition ( )

What does this do?

◆ initInterrupts()

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

What does this do?

◆ setEventHandler()

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

What does this do?

◆ setPosition()

void RotaryEncoder::setPosition ( int  value)

What does this do?

◆ tick()

void ICACHE_RAM_ATTR RotaryEncoder::tick ( )

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: