Treehopper C++ API
RotaryEncoder Class Reference

#include <RotaryEncoder.h>

Public Member Functions

 RotaryEncoder (DigitalIn &channelA, DigitalIn &channelB, int stepsPerTick=4)
 
 ~RotaryEncoder ()
 
long position ()
 
void position (long value)
 

Public Attributes

Event< RotaryEncoder, PositionChangedEventArgspositionChanged
 

Constructor & Destructor Documentation

◆ RotaryEncoder()

RotaryEncoder ( DigitalIn channelA,
DigitalIn channelB,
int  stepsPerTick = 4 
)

◆ ~RotaryEncoder()

Member Function Documentation

◆ position() [1/2]

long position ( )

◆ position() [2/2]

void position ( long  value)

Member Data Documentation

◆ positionChanged


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