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:b59c9d039037, 2015-10-06 (annotated)
- Committer:
- dwijaybane
- Date:
- Tue Oct 06 06:01:37 2015 +0000
- Revision:
- 0:b59c9d039037
- Child:
- 1:5f90620e922b
First Example
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dwijaybane | 0:b59c9d039037 | 1 | #include "mbed.h" |
| dwijaybane | 0:b59c9d039037 | 2 | |
| dwijaybane | 0:b59c9d039037 | 3 | DigitalOut myled(LED1); |
| dwijaybane | 0:b59c9d039037 | 4 | |
| dwijaybane | 0:b59c9d039037 | 5 | int main() { |
| dwijaybane | 0:b59c9d039037 | 6 | while(1) { |
| dwijaybane | 0:b59c9d039037 | 7 | myled = 1; |
| dwijaybane | 0:b59c9d039037 | 8 | wait(0.5); // 500 ms |
| dwijaybane | 0:b59c9d039037 | 9 | myled = 0; |
| dwijaybane | 0:b59c9d039037 | 10 | wait(0.5); |
| dwijaybane | 0:b59c9d039037 | 11 | } |
| dwijaybane | 0:b59c9d039037 | 12 | } |