exemplo de publicação de um programa

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Crazyaboutmachines
Date:
Tue Oct 04 00:19:49 2016 +0000
Commit message:
publish test

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 Oct 04 00:19:49 2016 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+DigitalOut userled(PA_5);
+DigitalOut SSRled(PA_6);
+DigitalOut ChargerRelay(PA_10);
+DigitalOut Fans(PA_7);
+
+int main() {
+    while(1) {
+        userled = 1; // LED is ON
+        SSRled = 0; // LED is ON
+        ChargerRelay=1;
+        Fans=0;
+        wait(1); // 200 ms
+        Fans=1;
+        userled = 0; // LED is OFF
+        SSRled = 1;
+        ChargerRelay=0;
+        wait(1); // 1 sec
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 04 00:19:49 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974
\ No newline at end of file