31 #include <mraa/gpio.hpp>
33 #include <mraa/pwm.hpp>
83 RGBRingCoder(
int en,
int latch,
int clear,
int clk,
int dat,
int sw,
84 int encA,
int encB,
int red,
int green,
int blue);
99 void setRingLEDS(uint16_t bits);
106 bool getButtonState();
113 int getEncoderPosition() {
return m_counter; };
118 void clearEncoderPosition() { m_counter = 0; };
128 void setRGBLED(
float r,
float g,
float b);
134 mraa::Gpio m_gpioLatch;
135 mraa::Gpio m_gpioClear;
136 mraa::Gpio m_gpioClock;
137 mraa::Gpio m_gpioData;
139 mraa::Gpio m_gpioSwitch;
142 mraa::Pwm m_pwmGreen;
145 mraa::Gpio m_gpioEncA;
146 mraa::Gpio m_gpioEncB;
148 static void interruptHandler(
void *ctx);
149 volatile int m_counter;
~RGBRingCoder()
Definition: rgbringcoder.cxx:101
API for the SparkFun* RGB RingCoder.
Definition: rgbringcoder.h:65
RGBRingCoder(int en, int latch, int clear, int clk, int dat, int sw, int encA, int encB, int red, int green, int blue)
Definition: rgbringcoder.cxx:35