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@0:926129e024d7, 2020-04-29 (annotated)
- Committer:
- dfmolanon
- Date:
- Wed Apr 29 00:52:38 2020 +0000
- Revision:
- 0:926129e024d7
- Child:
- 1:3d648aadb949
esdgf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dfmolanon | 0:926129e024d7 | 1 | #include "mbed.h" |
dfmolanon | 0:926129e024d7 | 2 | |
dfmolanon | 0:926129e024d7 | 3 | DigitalOut myled(LED1); |
dfmolanon | 0:926129e024d7 | 4 | |
dfmolanon | 0:926129e024d7 | 5 | int main() { |
dfmolanon | 0:926129e024d7 | 6 | while(1) { |
dfmolanon | 0:926129e024d7 | 7 | myled = 1; |
dfmolanon | 0:926129e024d7 | 8 | wait(0.2); |
dfmolanon | 0:926129e024d7 | 9 | myled = 0; |
dfmolanon | 0:926129e024d7 | 10 | wait(0.2); |
dfmolanon | 0:926129e024d7 | 11 | } |
dfmolanon | 0:926129e024d7 | 12 | } |