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.
Revision 1:ac9009f4fd5b, committed 2019-02-19
- Comitter:
- denizdosluoglu
- Date:
- Tue Feb 19 00:00:58 2019 +0000
- Parent:
- 0:7729521857fd
- Commit message:
- revised duty cycle/timing for pulsing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7729521857fd -r ac9009f4fd5b main.cpp --- a/main.cpp Sat Feb 09 20:59:26 2019 +0000 +++ b/main.cpp Tue Feb 19 00:00:58 2019 +0000 @@ -9,12 +9,16 @@ //pc.printf("\n%f\n",incled.read()); pc.printf("Hello World"); pc.printf("*IDN?\r\n"); + redled = 0; + irled = 0; while (true) { redled = 1; - irled = 0; - wait(0.001); + wait_us(50); redled = 0; + wait_us(450); irled = 1; - wait(0.001); + wait_us(50); + irled = 0; + wait_us(450); } }