Neopixel Brick

Dependencies:   NeoPixel mbed

Committer:
bcostm
Date:
Fri Nov 18 08:25:14 2016 +0000
Revision:
2:08c13f9a3d5c
Parent:
1:e9d1c42a73ae
Child:
4:1f676d6961e8
Update mbed lib + remove space on last line of main.cpp

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:028fac66239d 1 #include "mbed.h"
bcostm 1:e9d1c42a73ae 2
bcostm 1:e9d1c42a73ae 3 //------------------------------------
bcostm 1:e9d1c42a73ae 4 // Hyperterminal configuration
bcostm 1:e9d1c42a73ae 5 // 9600 bauds, 8-bit data, no parity
bcostm 1:e9d1c42a73ae 6 //------------------------------------
bcostm 1:e9d1c42a73ae 7
bcostm 0:028fac66239d 8 Serial pc(SERIAL_TX, SERIAL_RX);
bcostm 2:08c13f9a3d5c 9
bcostm 0:028fac66239d 10 DigitalOut myled(LED1);
bcostm 2:08c13f9a3d5c 11
bcostm 2:08c13f9a3d5c 12 int main()
bcostm 2:08c13f9a3d5c 13 {
bcostm 2:08c13f9a3d5c 14 int i = 1;
bcostm 2:08c13f9a3d5c 15 pc.printf("Hello World !\n");
bcostm 2:08c13f9a3d5c 16 while(1) {
bcostm 2:08c13f9a3d5c 17 wait(1);
bcostm 2:08c13f9a3d5c 18 pc.printf("This program runs since %d seconds.\n", i++);
bcostm 2:08c13f9a3d5c 19 myled = !myled;
bcostm 2:08c13f9a3d5c 20 }
bcostm 0:028fac66239d 21 }