Bチーム / Mbed 2 deprecated Pr019_Renew

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lilac0112_1
Date:
Sat Jun 28 04:29:43 2014 +0000
Parent:
0:aeab047bd03b
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jun 28 04:21:53 2014 +0000
+++ b/main.cpp	Sat Jun 28 04:29:43 2014 +0000
@@ -1,12 +1,12 @@
 #include "mbed.h"
-
+#define flicker 0.2
 DigitalOut myled(LED1);
 
 int main() {
     while(1) {
         myled = 1;
-        wait(0.2);
+        wait(flicker);
         myled = 0;
-        wait(0.2);
+        wait(flicker);
     }
 }