POV

Dependencies:   MMA8451Q mbed

Files at this revision

API Documentation at this revision

Comitter:
collinan
Date:
Thu Feb 22 03:59:59 2018 +0000
Parent:
2:5de47d55f618
Commit message:
woking feb 21 w3434

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Feb 22 03:18:47 2018 +0000
+++ b/main.cpp	Thu Feb 22 03:59:59 2018 +0000
@@ -43,6 +43,7 @@
 
 int main(void)
 {
+float w_time=0.050;
    // timeout.attach(&attimeout,5.0);
 
     MMA8451Q acc(SDA, SCL, MMA8451_I2C_ADDRESS);
@@ -68,7 +69,7 @@
             //wait_ms(0.10);
         }
     */
-    float w_time=0.1;
+    
     /*
     while (on) {
         // while (true) {
@@ -362,7 +363,13 @@
 
     }
     
+    
     printf("End\r\n");
+    for(int b=0; b<11; b++) {
+            LED_S[b]=0;
+            wait(w_time);
+            printf("turn off\r\n");
+        }