Maenoshin Takahashi / Mbed 2 deprecated 3_0

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
maenoshin
Date:
Thu Oct 10 02:28:42 2019 +0000
Commit message:
V

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 65cdac390afc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 10 02:28:42 2019 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+ 
+//DigitalOut(D0);
+
+ 
+PwmOut myled(D10);
+ 
+int main() {
+    
+    myled.period(0.01);
+ 
+    
+    while(1) {//組み込み型のプログラムは無限ループになるようにする。(終わってはいけない)
+//        D0=0;
+        myled.pulsewidth(0.003);
+        wait(5.0); // 1 sec
+        myled.pulsewidth(0.005);
+        wait(5.0); // 1 sec
+//        D0=1;
+        myled.pulsewidth(0.003);
+        wait(5.0); // 1 sec
+        myled.pulsewidth(0.005);
+        wait(5.0); // 1 sec
+    }
+}
diff -r 000000000000 -r 65cdac390afc mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 10 02:28:42 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file