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@0:66e5b37c127e, 2018-04-16 (annotated)
- Committer:
- Andrew_M
- Date:
- Mon Apr 16 08:42:04 2018 +0000
- Revision:
- 0:66e5b37c127e
- Child:
- 1:a14415de3ad5
Initial commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Andrew_M | 0:66e5b37c127e | 1 | /* |
| Andrew_M | 0:66e5b37c127e | 2 | ELEC2645 Embedded Systems Project |
| Andrew_M | 0:66e5b37c127e | 3 | School of Electronic & Electrical Engineering |
| Andrew_M | 0:66e5b37c127e | 4 | University of Leeds |
| Andrew_M | 0:66e5b37c127e | 5 | Name: |
| Andrew_M | 0:66e5b37c127e | 6 | Username: |
| Andrew_M | 0:66e5b37c127e | 7 | Student ID Number: |
| Andrew_M | 0:66e5b37c127e | 8 | Date: |
| Andrew_M | 0:66e5b37c127e | 9 | */ |
| Andrew_M | 0:66e5b37c127e | 10 | |
| Andrew_M | 0:66e5b37c127e | 11 | #include "mbed.h" |
| Andrew_M | 0:66e5b37c127e | 12 | |
| Andrew_M | 0:66e5b37c127e | 13 | DigitalOut led1(LED1); |
| Andrew_M | 0:66e5b37c127e | 14 | |
| Andrew_M | 0:66e5b37c127e | 15 | // main() runs in its own thread in the OS |
| Andrew_M | 0:66e5b37c127e | 16 | int main() { |
| Andrew_M | 0:66e5b37c127e | 17 | while (true) { |
| Andrew_M | 0:66e5b37c127e | 18 | led1 = !led1; |
| Andrew_M | 0:66e5b37c127e | 19 | wait(0.5); |
| Andrew_M | 0:66e5b37c127e | 20 | } |
| Andrew_M | 0:66e5b37c127e | 21 | } |
| Andrew_M | 0:66e5b37c127e | 22 |