Driver for the GE Color Effects LED lights. Currently it is blocking, but it could be made to be nonblocking.

Dependents:   GEColorEffects_Example GEColorEffects_Example

This library's code is based on Clark Jarvis's program here: http://developer.mbed.org/users/clarkjarvis/code/FRDM_GE_ColorEffects/

Committer:
bridadan
Date:
Mon Feb 16 20:27:53 2015 +0000
Revision:
0:3f51641c4e69
Child:
1:e56bc0a8c273
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bridadan 0:3f51641c4e69 1 #ifndef GE_COLOR_EFFECTS_H
bridadan 0:3f51641c4e69 2 #define GE_COLOR_EFFECTS_H
bridadan 0:3f51641c4e69 3
bridadan 0:3f51641c4e69 4 #include "mbed.h"
bridadan 0:3f51641c4e69 5
bridadan 0:3f51641c4e69 6 class GEColorEffects {
bridadan 0:3f51641c4e69 7
bridadan 0:3f51641c4e69 8 public:
bridadan 0:3f51641c4e69 9 GEColorEffects(PinName pin, int size);
bridadan 0:3f51641c4e69 10 void write(int buf[], bool eightBit);
bridadan 0:3f51641c4e69 11
bridadan 0:3f51641c4e69 12 private:
bridadan 0:3f51641c4e69 13 int size;
bridadan 0:3f51641c4e69 14 DigitalOut gpo;
bridadan 0:3f51641c4e69 15
bridadan 0:3f51641c4e69 16 void sendZero();
bridadan 0:3f51641c4e69 17 void sendOne();
bridadan 0:3f51641c4e69 18 void sendData(unsigned char data, int length);
bridadan 0:3f51641c4e69 19 void sendFrame(unsigned char address, unsigned char lumm, unsigned char R, unsigned char G, unsigned char B);
bridadan 0:3f51641c4e69 20 void endFrame();
bridadan 0:3f51641c4e69 21 };
bridadan 0:3f51641c4e69 22
bridadan 0:3f51641c4e69 23 #endif