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:
- 1:e363bc951921
- Parent:
- 0:fe9f4778556e
--- a/main.cpp Sat Sep 29 19:59:47 2018 +0000
+++ b/main.cpp Sat Sep 29 20:07:49 2018 +0000
@@ -1,12 +1,13 @@
#include "mbed.h"
DigitalOut LED_1(LED1);
DigitalOut LED_2(LED2);
-int main() {
+int main()
+{
while(1) {
LED_1 = 1; // LED is ON
LED_2 = 0; // LED is ON
wait(0.5); // 200 ms
- LED_1 = 0; // LED is ON
+ LED_1 = 0; // LED is ON
LED_2 = 1; // LED is ON
wait(0.5); // 1 sec
}