デジタルポート反転制御

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
spyglass77
Date:
Fri Aug 28 16:15:04 2015 +0000
Parent:
0:88cb63e043c1
Commit message:
add comit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 88cb63e043c1 -r d95c4085cf00 main.cpp
--- a/main.cpp	Mon Aug 24 07:42:12 2015 +0000
+++ b/main.cpp	Fri Aug 28 16:15:04 2015 +0000
@@ -3,7 +3,7 @@
 DigitalOut port7(D7);
 int main() {
     while(1) {
-        port7 = !port7; //D7 port 
-        wait(0.2); // 200 ms
+        port7 = !port7; //D7 portを反転させる
+        wait(0.2); // 0.2秒待つ
     }
-}
+}
\ No newline at end of file