Class available to make using NeoPixel lights very simple
easyNeo.h
- Committer:
- dannellyz
- Date:
- 2015-02-15
- Revision:
- 0:cfbe334f4b1c
- Child:
- 1:f401535caf70
File content as of revision 0:cfbe334f4b1c:
/* Class to use the NeoPixels on an mbed with ease */ #include "mbed.h" #include "neopixel.h" /** Xbee interface class for configuring, sending and recieving data using an Xbee */ class easyNeo { private: int numLeds; public: /** Configure serial data pin and number of LEDs */ easyNeo(int numLeds); void setPixel(neopixel::Pixel * buffer, uint32_t, uint8_t, uint8_t, uint8_t, uint32_t); void lightTest(); void setByColor(int ledNum, char* color); void setByHex(char*); void clear(); void update(neopixel::Pixel * buffer); uint8_t c2i(char ); };