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.
main.cpp
- Committer:
- edwinjair
- Date:
- 2020-04-12
- Revision:
- 26:b2dd84140b62
- Parent:
- 25:3f0b302c1435
- Child:
- 27:e91dc3779b64
File content as of revision 26:b2dd84140b62:
#include "mbed.h"
DigitalOut Verde(LED1);
DigitalOut Amarillo(LED2);
DigitalOut Rojo(LED3);
int main() {
while(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);
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);
}
}