Creating a CoxBox with the mbed
Dependencies: mbed C12832 SMARTGPU2
Diff: timer.cpp
- Revision:
- 9:f49dfeb4d3d5
- Parent:
- 7:a784aa1aa27b
- Parent:
- 8:ae9f6033daa0
diff -r a784aa1aa27b -r f49dfeb4d3d5 timer.cpp --- a/timer.cpp Sun May 04 19:58:58 2014 +0000 +++ b/timer.cpp Sun May 04 20:41:42 2014 +0000 @@ -4,7 +4,6 @@ Timer t; int count; int actualCount; - //float time; int timeSwitch; DigitalOut myled(LED1); DigitalOut myled2(LED2); @@ -21,6 +20,7 @@ count++; } + void timer() { while(1){ if(button){