mbedボードテスト フォトリフレクタ

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
manimani3712
Date:
Thu Apr 14 03:53:41 2016 +0000
Commit message:
???????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 3f2fefc67801 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 14 03:53:41 2016 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+
+DigitalOut myled(PTE3);
+DigitalIn foto(PTB2);
+int main() {
+    while(1) {
+        if(foto==1)myled=1;
+        else myled=0;
+    }
+}
diff -r 000000000000 -r 3f2fefc67801 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 14 03:53:41 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file