Zac Dannelly
/
NeoPixelEasy
Program to demo the easyNeo class
Diff: main.cpp
- Revision:
- 0:8b36d99af4c3
- Child:
- 1:9a5fbfa38676
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Feb 15 21:32:19 2015 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" +//Include both of the following to use easyNeo class +#include "neopixel.h" +#include "easyNeo.h" + +//Innitialize easyNeo simple with the number of LEDs in the grouping +easyNeo neoTest(3); + +int main() +{ + + //for easy adding: + //red = FF0000 + //green = 00FF00 + //blue = 0000FF + //off = 000000 + while (1) { + neoTest.clear(); + neoTest.lightTest(); + wait(1); + neoTest.clear(); + neoTest.setByHex("FF0000000000000000"); + wait(1); + neoTest.clear(); + neoTest.setByHex("0000000000FF000000"); + wait(1); + neoTest.clear(); + neoTest.setByHex("00000000000000FF00"); + wait(1); + neoTest.clear(); + + + } +} \ No newline at end of file