upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the SparkFun* RGB RingCoder. More...

Detailed Description

RGB RingCoder is a breakout board, a circular LED containing 16 LEDs arranged in a ring, and a rotary encoder. The encoder contains an RGB LED as well as a push button function.

The device requires 11 pins, 3 of which must be PWM-capable (for the RGB LEDs).

rgbringcoder.jpg

Public Member Functions

synchronized void delete ()
 
 RGBRingCoder (int en, int latch, int clear, int clk, int dat, int sw, int encA, int encB, int red, int green, int blue)
 
void setRingLEDS (int bits)
 
boolean getButtonState ()
 
int getEncoderPosition ()
 
void clearEncoderPosition ()
 
void setRGBLED (float r, float g, float b)
 

Constructor & Destructor Documentation

RGBRingCoder ( int  en,
int  latch,
int  clear,
int  clk,
int  dat,
int  sw,
int  encA,
int  encB,
int  red,
int  green,
int  blue 
)

RGBRingCoder constructor

Parameters
enEnables GPIO
latchLatch GPIO
clearClears GPIO
clkClock GPIO
datData out GPIO
swPush button switch GPIO
encAEncoder A GPIO
encBEncoder B GPIO
redRGB red LED PWM
greenRGB green LED PWM
blueRGB blue LED PWM

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