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
Revision 29:32f644b921a5, committed 2020-09-08
- Comitter:
- xavier_majorel
- Date:
- Tue Sep 08 14:14:03 2020 +0000
- Parent:
- 28:f1e7e7d7959f
- Commit message:
- EXTENTION GROVE
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Sep 08 13:29:46 2020 +0000 +++ b/main.cpp Tue Sep 08 14:14:03 2020 +0000 @@ -1,12 +1,12 @@ #include "mbed.h" -DigitalOut myled(LED1);//selection led +DigitalOut myled(PTA1); int main() { - while(1) {// boucle - myled = 1;//led eteinte - wait(0.2);//attente - myled = 0;//led allumée - wait(0.2);//attente + while(1) { + myled = 0; + wait(0.5); + myled = 1; + wait(1.5); } }