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.
Diff: main.cpp
- Revision:
- 0:b6ae7abdff7e
- Child:
- 1:c5711c7e5b46
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Sep 22 13:45:02 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut myled2(D2);
+DigitalOut myled3(D3);
+
+int main() {
+ while(1) {
+ myled2 = 1; // LED is ON
+ myled3 = 0; // LED is ON
+ wait(0.2); // 200 ms
+ myled2 = 0; // LED is OFF
+ myled3 = 1; // LED is ON
+ wait(1.0); // 1 sec
+ }
+}