風速計のパルスを間引く用のテストコード

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
YusukeWakuta
Date:
Tue Apr 18 12:55:12 2017 +0000
Commit message:
???????????????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib 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 392c564d1da5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 18 12:55:12 2017 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "rtos.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+
+void DigitalRepeat()
+{
+    while(1) {
+        led2 = 1;
+        wait_ms(20);
+        led2 = 0;
+        wait_ms(20);
+    }
+}
+
+int main()
+{
+    Thread DigitalThread(&DigitalRepeat);
+    while(1) {
+        led1 = 1;
+        wait(0.2);
+        led1 = 0;
+        wait(0.2);
+    }
+}
diff -r 000000000000 -r 392c564d1da5 mbed-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Tue Apr 18 12:55:12 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
diff -r 000000000000 -r 392c564d1da5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Apr 18 12:55:12 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10
\ No newline at end of file