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-06
- Revision:
- 25:3f0b302c1435
- Parent:
- 24:7f14b70fc9ef
- Child:
- 26:b2dd84140b62
File content as of revision 25:3f0b302c1435:
#include "mbed.h"
DigitalOut Verde(D0);
DigitalOut Amarillo(D1);
DigitalOut Rojo(D2);
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);
}
}