mbed電子工作レシピ リスト4.1のプログラム

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mbed_Cookbook_SE
Date:
Wed Dec 23 15:33:14 2015 +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 ff2497eea45b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Dec 23 15:33:14 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+Ticker flipper;
+DigitalOut myled(LED1);
+
+void flip() {
+    
+    myled = !myled;
+    
+}
+
+int main() {
+    flipper.attach(&flip, 0.2);
+    
+    while(1) {
+    }
+}
diff -r 000000000000 -r ff2497eea45b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Dec 23 15:33:14 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file