App that goes w/ my article on how to offline sync with mbed

Dependencies:   mbed GroveColourSensor

Committer:
janjongboom
Date:
Tue Apr 05 12:13:19 2016 +0000
Revision:
6:44238a870814
Parent:
5:e9bce23d2a19
change to Brians lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jan Jongboom 3:a1544d54358a 1 #include "mbed.h"
janjongboom 6:44238a870814 2 #include "GroveColourSensor/GroveColourSensor.h"
Jan Jongboom 3:a1544d54358a 3
Jan Jongboom 3:a1544d54358a 4 DigitalOut led(LED_BLUE);
Jan Jongboom 3:a1544d54358a 5
Jan Jongboom 3:a1544d54358a 6 int main()
Jan Jongboom 3:a1544d54358a 7 {
Jan Jongboom 3:a1544d54358a 8 while (true) {
Jan Jongboom 3:a1544d54358a 9 led = !led; // toggle led
Jan Jongboom 3:a1544d54358a 10 wait(0.2f);
Jan Jongboom 3:a1544d54358a 11 }
Jan Jongboom 3:a1544d54358a 12 }