albatross / Mbed 2 deprecated Phot_int

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
YusukeWakuta
Date:
Sat Jan 07 07:20:50 2017 +0000
Parent:
0:81114af7e3d0
Commit message:
????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 81114af7e3d0 -r 3778bb7e3cf9 main.cpp
--- a/main.cpp	Sat Feb 20 11:22:57 2016 +0000
+++ b/main.cpp	Sat Jan 07 07:20:50 2017 +0000
@@ -32,7 +32,7 @@
     }
 
     int main() {
-        Photo_int.rise(Photo);
+        Photo_int.fall(Photo);
         timer.start();
         while(1) {
             if(counter >= COUNT_NUM) {
@@ -42,7 +42,8 @@
                 counter = 0;
 
             }
+                 servo(Cadence);
         }
-        servo(Cadence);
+   
 
     }
\ No newline at end of file