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:
- Otakutronics
- Date:
- 2018-12-15
- Revision:
- 11:657cdd3a0a5f
- Parent:
- 10:956e173b7e3f
File content as of revision 11:657cdd3a0a5f:
#include "mbed.h"
DigitalIn btn(PTE25,PullUp);
DigitalOut led(LED_RED,1);
int main(){
while (1){
if (!btn){
while (!btn){ wait(0.05f);}
led = !led;
}
}
}
/*
DigitalOut gpo(D0);
DigitalOut led(LED_RED);
int main()
{
while (true) {
gpo = !gpo; // toggle pin
led = !led; // toggle led
wait(0.2f);
}
}
*/