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:bcbc14441ee8, 2017-05-17 (annotated)
- Committer:
- dedounet
- Date:
- Wed May 17 09:53:25 2017 +0000
- Revision:
- 0:bcbc14441ee8
- Child:
- 1:6f8bf5bdc70f
start!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dedounet | 0:bcbc14441ee8 | 1 | #include "mbed.h" |
dedounet | 0:bcbc14441ee8 | 2 | |
dedounet | 0:bcbc14441ee8 | 3 | DigitalOut myled(LED1); |
dedounet | 0:bcbc14441ee8 | 4 | |
dedounet | 0:bcbc14441ee8 | 5 | int main() { |
dedounet | 0:bcbc14441ee8 | 6 | while(1) { |
dedounet | 0:bcbc14441ee8 | 7 | myled = 1; |
dedounet | 0:bcbc14441ee8 | 8 | wait(0.2); |
dedounet | 0:bcbc14441ee8 | 9 | myled = 0; |
dedounet | 0:bcbc14441ee8 | 10 | wait(0.2); |
dedounet | 0:bcbc14441ee8 | 11 | } |
dedounet | 0:bcbc14441ee8 | 12 | } |