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@4:2b99ace168b3, 2016-06-09 (annotated)
- Committer:
- mickeypop
- Date:
- Thu Jun 09 22:18:44 2016 +0000
- Revision:
- 4:2b99ace168b3
- Parent:
- 2:b60cb847489c
easy blink test 5 sec on 2 short the recycle.; lets you see if it worked better
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| screamer | 0:005629fe3609 | 1 | #include "mbed.h" | 
| screamer | 0:005629fe3609 | 2 | |
| screamer | 0:005629fe3609 | 3 | DigitalOut myled(LED1); | 
| screamer | 0:005629fe3609 | 4 | |
| screamer | 0:005629fe3609 | 5 | int main() { | 
| screamer | 0:005629fe3609 | 6 | while(1) { | 
| mickeypop | 4:2b99ace168b3 | 7 | myled = 1; // LED is ON easy test, 5sec on 2shor and recycle | 
| mickeypop | 4:2b99ace168b3 | 8 | wait(5.2); // 200 ms | 
| mickeypop | 4:2b99ace168b3 | 9 | myled = 0; // LED is OFF | 
| mickeypop | 4:2b99ace168b3 | 10 | wait(1.0); // 1 sec | 
| mickeypop | 4:2b99ace168b3 | 11 | |
| bcostm | 2:b60cb847489c | 12 | myled = 1; // LED is ON | 
| bcostm | 2:b60cb847489c | 13 | wait(0.2); // 200 ms | 
| bcostm | 2:b60cb847489c | 14 | myled = 0; // LED is OFF | 
| bcostm | 2:b60cb847489c | 15 | wait(1.0); // 1 sec | 
| mickeypop | 4:2b99ace168b3 | 16 | |
| mickeypop | 4:2b99ace168b3 | 17 | myled = 1; // LED is ON | 
| mickeypop | 4:2b99ace168b3 | 18 | wait(0.2); // 200 ms | 
| mickeypop | 4:2b99ace168b3 | 19 | myled = 0; // LED is OFF | 
| mickeypop | 4:2b99ace168b3 | 20 | wait(1.0); // 1 sec | 
| mickeypop | 4:2b99ace168b3 | 21 | |
| mickeypop | 4:2b99ace168b3 | 22 | |
| mickeypop | 4:2b99ace168b3 | 23 | |
| mickeypop | 4:2b99ace168b3 | 24 | |
| mickeypop | 4:2b99ace168b3 | 25 | |
| screamer | 0:005629fe3609 | 26 | } | 
| screamer | 0:005629fe3609 | 27 | } |