Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:cce51cc093a4, committed 2016-10-04
- 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 |
diff -r 000000000000 -r cce51cc093a4 main.cpp
--- /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
+ }
+}
diff -r 000000000000 -r cce51cc093a4 mbed.bld --- /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