Program to demo the easyNeo class

Dependencies:   easyNeo mbed

main.cpp

Committer:
dannellyz
Date:
2015-02-15
Revision:
0:8b36d99af4c3
Child:
1:9a5fbfa38676

File content as of revision 0:8b36d99af4c3:

#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();
        
        
    }
}