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:
- 25:3f0b302c1435
- Parent:
- 24:7f14b70fc9ef
- Child:
- 26:b2dd84140b62
--- a/main.cpp Mon Apr 08 11:03:25 2019 +0100
+++ b/main.cpp Mon Apr 06 00:09:53 2020 +0000
@@ -1,12 +1,33 @@
#include "mbed.h"
-DigitalOut myled(LED1);
+DigitalOut Verde(D0);
+DigitalOut Amarillo(D1);
+DigitalOut Rojo(D2);
int main() {
while(1) {
- myled = 1;
+ Verde = 1;
+ wait(7.0);
+
+ Verde = 0;
+ wait(0.2);
+ Verde = 1;
+ wait(0.2);
+ Verde = 0;
+ wait(0.2);
+ Verde = 1;
wait(0.2);
- myled = 0;
+ Verde = 0;
+ wait(0.2);
+
+ Amarillo = 1;
+ wait(5.0);
+ Amarillo = 0;
+ wait(0.2);
+
+ Rojo = 1;
+ wait(5.0);
+ Rojo = 0;
wait(0.2);
}
}