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.
Fork of TechBreakThrough by
main.cpp@0:181267edd351, 2018-01-02 (annotated)
- Committer:
- maclobdell
- Date:
- Tue Jan 02 19:31:52 2018 +0000
- Revision:
- 0:181267edd351
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| maclobdell | 0:181267edd351 | 1 | #include "mbed.h" |
| maclobdell | 0:181267edd351 | 2 | |
| maclobdell | 0:181267edd351 | 3 | DigitalOut led1(LED1); |
| maclobdell | 0:181267edd351 | 4 | |
| maclobdell | 0:181267edd351 | 5 | // main() runs in its own thread in the OS |
| maclobdell | 0:181267edd351 | 6 | int main() { |
| maclobdell | 0:181267edd351 | 7 | while (true) { |
| maclobdell | 0:181267edd351 | 8 | led1 = !led1; |
| maclobdell | 0:181267edd351 | 9 | wait(0.5); |
| maclobdell | 0:181267edd351 | 10 | } |
| maclobdell | 0:181267edd351 | 11 | } |
| maclobdell | 0:181267edd351 | 12 |
