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:
- cielo
- Date:
- 2020-04-12
- Revision:
- 3:3bd2bf8416c8
- Parent:
- 1:6554c60faa06
File content as of revision 3:3bd2bf8416c8:
#include "mbed.h"
//led parpadeante
DigitalOut led(LED2);
DigitalIn push1(SW2);
DigitalIn push2(SW3);
Serial com1(USBTX,USBRX); // PARA USAR LOS PINES UART
int main()
{
do {
led = 1; // LED is ON 1
wait(0.3); // 300 ms
led = 0; // LED is OFF
wait(0.3); //300 ms
led = 1; // 2
wait(0.3);
led = 0;
wait(0.3);
led = 1; //3
wait(0.3);
led = 0;
wait(0.3);
led = 1; //4
wait(0.3);
led = 0;
wait(0.3);
led = 1; // 5
wait(0.3);
led = 0;
wait(0.5);
}
while((push1==1)&&(push2==1));
}