LPD6803 RGB Pixels
LPD6803.h
1 #if ARDUINO >= 100
2 #include "Arduino.h"
3 #else
4 #include "WProgram.h"
5 #endif
6 
11 class LPD6803 {
12 private:
13  uint8_t cpumax;
14 
15 public:
22  LPD6803(uint16_t n, uint8_t dpin, uint8_t cpin);
23  void begin();
24  void show();
25 
29  void doSwapBuffersAsap(uint16_t idx);
37  void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b);
45  void setPixelColor(uint16_t n, uint16_t c);
50  void setCPUmax(uint8_t m);
55  uint16_t numPixels(void);
56 };
void setCPUmax(uint8_t m)
Sets max cpu speed.
Definition: LPD6803.cpp:159
void show()
Shows pixels on LEDs.
Definition: LPD6803.cpp:170
uint16_t numPixels(void)
Number of pixels connected.
Definition: LPD6803.cpp:156
Class that stores state and functions for interacting with LPD6803 RGB Pixels.
Definition: LPD6803.h:11
void begin()
Starts I2C connection.
Definition: LPD6803.cpp:145
void setPixelColor(uint16_t n, uint8_t r, uint8_t g, uint8_t b)
Set a pixel's color using separate red, green and blue components.
Definition: LPD6803.cpp:176
void doSwapBuffersAsap(uint16_t idx)
Update the pixels when next possible.
Definition: LPD6803.cpp:173
LPD6803(uint16_t n, uint8_t dpin, uint8_t cpin)
LPD6803 constructor.
Definition: LPD6803.cpp:129