with optic sensor

Dependencies:   Stepper mbed PinDetect

Files at this revision

API Documentation at this revision

Comitter:
rschimpf78
Date:
Wed Sep 04 20:58:37 2019 +0000
Parent:
5:1b451520ed5f
Commit message:
update;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1b451520ed5f -r 7cd69300073f main.cpp
--- a/main.cpp	Wed Sep 04 20:54:45 2019 +0000
+++ b/main.cpp	Wed Sep 04 20:58:37 2019 +0000
@@ -61,12 +61,13 @@
                 myled3 = (count & 0x02)>>1;
                 myled2 = (count & 0x04)>>2;
                 myled = (count & 0x08)>>3;
-                count++;
+                count--;
                 pc.printf("\ncount:%ld",count);
                 }
         
         old_optic = new_optic;
         }
+        
      
    }
 }