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.
Dependencies: mbed
main.cpp
- Committer:
- anderibabe
- Date:
- 2017-11-03
- Revision:
- 0:65488f8d255b
File content as of revision 0:65488f8d255b:
#include "mbed.h"
Ticker Sw1; // Switch1 para cambiar el estado de los led
DigitalOut Led1(PB_3); // Led1 conectado al pin D3
DigitalOut Led2(PB_5); // Led2 conectado al pin D4
DigitalOut Led3(PB_4); // Led3 conectado al pin D5
void recur ()
{
Led1=!Led1;
Led2=!Led2;
Led3=!Led3;
}
int main()
{
Sw1.attach(&recur, 1);
while(1) {
sleep ();
}
}