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:
- kaliczp
- Date:
- 2015-01-05
- Revision:
- 1:c0c5b5860aa8
- Parent:
- 0:e8a1a503d390
- Child:
- 2:4469aa7f4995
File content as of revision 1:c0c5b5860aa8:
#include "mbed.h" DigitalOut myled(LED1); DigitalIn mybutton(USER_BUTTON); int main() { while(1) { if (mybutton == 0) { // Button is pressed myled = 1; // LED is ON } else { myled = 0; // LED is OFF } } }