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

#include <Potentiometer.h>

Public Member Functions

 Potentiometer (int pin, int id=99)
 
void setEventHandler (void(*function)(Potentiometer *, uint8_t, uint8_t))
 
int getValue ()
 
int getId ()
 
void check ()
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ Potentiometer()

Potentiometer::Potentiometer ( int  pin,
int  id = 99 
)
inline

Member Function Documentation

◆ check()

void Potentiometer::check ( )
inline

◆ getId()

int Potentiometer::getId ( )
inline

◆ getValue()

int Potentiometer::getValue ( )
inline

◆ setEventHandler()

void Potentiometer::setEventHandler ( void(*)(Potentiometer *, uint8_t, uint8_t)  function)
inline

Member Data Documentation

◆ kEventStableUpdate

const uint8_t Potentiometer::kEventStableUpdate = 0
static

◆ kEventUnstableUpdate

const uint8_t Potentiometer::kEventUnstableUpdate = 1
static

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