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);
113 int getEncoderPosition() {
return m_counter; };
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;
141 mraa::Gpio m_gpioEncA;
142 mraa::Gpio m_gpioEncB;
145 mraa::Pwm m_pwmGreen;
148 static void interruptHandler(
void *ctx);
149 volatile int m_counter;
~RGBRingCoder()
Definition: rgbringcoder.cxx:98
API for the SparkFun* RGB RingCoder.
Definition: rgbringcoder.hpp:65
bool getButtonState()
Definition: rgbringcoder.cxx:177
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void clearEncoderPosition()
Definition: rgbringcoder.hpp:118
void setRGBLED(float r, float g, float b)
Definition: rgbringcoder.cxx:182
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:32