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
main.cpp@1:d9e6e3d4556e, 2015-11-24 (annotated)
- Committer:
- Parthasarathy
- Date:
- Tue Nov 24 11:27:13 2015 +0000
- Revision:
- 1:d9e6e3d4556e
- Parent:
- 0:49e37eb917ef
Updated specific port to generic LED1 define
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Parthasarathy | 0:49e37eb917ef | 1 | #include "mbed.h" |
| Parthasarathy | 1:d9e6e3d4556e | 2 | |
| Parthasarathy | 1:d9e6e3d4556e | 3 | DigitalOut myled(LED1); |
| Parthasarathy | 0:49e37eb917ef | 4 | |
| Parthasarathy | 0:49e37eb917ef | 5 | int main() { |
| Parthasarathy | 0:49e37eb917ef | 6 | printf("RESET"); |
| Parthasarathy | 0:49e37eb917ef | 7 | while(1) { |
| Parthasarathy | 0:49e37eb917ef | 8 | myled = 1; |
| Parthasarathy | 0:49e37eb917ef | 9 | wait(0.2); |
| Parthasarathy | 0:49e37eb917ef | 10 | myled = 0; |
| Parthasarathy | 0:49e37eb917ef | 11 | wait(0.2); |
| Parthasarathy | 0:49e37eb917ef | 12 | printf("TEST"); |
| Parthasarathy | 0:49e37eb917ef | 13 | } |
| Parthasarathy | 0:49e37eb917ef | 14 | } |