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:
- 27:e91dc3779b64
- Parent:
- 26:b2dd84140b62
- Child:
- 28:e030c48c7cfd
File content as of revision 27:e91dc3779b64:
#include "mbed.h"
DigitalOut Verde(LED2);
DigitalOut Azul(LED3);
DigitalOut Rojo(LED1);
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);
Azul = 1;
wait(5.0);
Azul = 0;
wait(0.2);
Rojo = 1;
wait(5.0);
Rojo = 0;
wait(0.2);
}
}