Neopixel Brick

Dependencies:   NeoPixel mbed

Committer:
bcostm
Date:
Fri Feb 21 10:34:55 2014 +0000
Revision:
0:028fac66239d
Child:
1:e9d1c42a73ae
Initial version.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:028fac66239d 1 #include "mbed.h"
bcostm 0:028fac66239d 2
bcostm 0:028fac66239d 3 Serial pc(SERIAL_TX, SERIAL_RX);
bcostm 0:028fac66239d 4
bcostm 0:028fac66239d 5 DigitalOut myled(LED1);
bcostm 0:028fac66239d 6
bcostm 0:028fac66239d 7 int main() {
bcostm 0:028fac66239d 8 int i = 1;
bcostm 0:028fac66239d 9 pc.printf("Hello World !\n");
bcostm 0:028fac66239d 10 while(1) {
bcostm 0:028fac66239d 11 wait(1);
bcostm 0:028fac66239d 12 pc.printf("This program runs since %d seconds.\n", i++);
bcostm 0:028fac66239d 13 myled = !myled;
bcostm 0:028fac66239d 14 }
bcostm 0:028fac66239d 15 }
bcostm 0:028fac66239d 16