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.
switchonledoff.cpp
- Committer:
- goddyy
- Date:
- 2021-06-02
- Revision:
- 4:f5b95a6ad063
- Parent:
- 1:09943c9a9c06
File content as of revision 4:f5b95a6ad063:
#include "mbed.h" DigitalOut yellowled(p5); DigitalIn switchbutton(p10); int main (){ while(1){ if (switchbutton==1){ yellowled=0; wait(0.5); } else if (switchbutton==0){ yellowled=1; wait(0.5); } } }