Rotary encoder handler.

Embed: (wiki syntax)

« Back to documentation index

RotaryEncoder Class Reference

RotaryEncoder Class Reference

Rotary encoder handling class. More...

#include <RotaryEncoder.h>

Public Member Functions

int8_t getDirection () const
 Retrieve rotation direction.
bool getPushButton () const
 Retrieve push button status.
void pulse ()
 Launched by Ticker to determine rotation direction.

Detailed Description

Rotary encoder handling class.

Starts a ticker which checks the status of the encoder and sets the rotation directions based on its status.

Definition at line 11 of file RotaryEncoder.h.


Member Function Documentation

int8_t getDirection (  ) const

Retrieve rotation direction.

Public methods.

Definition at line 18 of file RotaryEncoder.cpp.

bool getPushButton (  ) const

Retrieve push button status.

Definition at line 28 of file RotaryEncoder.cpp.

void pulse (  )

Launched by Ticker to determine rotation direction.

Private methods.

Definition at line 35 of file RotaryEncoder.cpp.