test code for commt

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
STM32Workshop
Date:
Tue Dec 18 11:46:31 2018 +0000
Commit message:
ver1

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 18 11:46:31 2018 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut myled(PA_5);
+
+int main() {
+    while(1) {
+        myled.write(1); // LED is ON
+        wait(5); // 200 ms
+        myled = 0; // LED is OFF
+        wait(1.0); // 1 sec
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 18 11:46:31 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec
\ No newline at end of file