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:b2913c0bac17, 2015-07-23 (annotated)
- Committer:
- norbianisa
- Date:
- Thu Jul 23 02:12:58 2015 +0000
- Revision:
- 0:b2913c0bac17
- Child:
- 1:82015014865c
added led2;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| norbianisa | 0:b2913c0bac17 | 1 | #include "mbed.h" |
| norbianisa | 0:b2913c0bac17 | 2 | |
| norbianisa | 0:b2913c0bac17 | 3 | DigitalOut myled(LED1); |
| norbianisa | 0:b2913c0bac17 | 4 | DigitalOut myled2(LED2); |
| norbianisa | 0:b2913c0bac17 | 5 | |
| norbianisa | 0:b2913c0bac17 | 6 | int main() { |
| norbianisa | 0:b2913c0bac17 | 7 | while(1) { |
| norbianisa | 0:b2913c0bac17 | 8 | myled = 1; |
| norbianisa | 0:b2913c0bac17 | 9 | myled2 = 0; |
| norbianisa | 0:b2913c0bac17 | 10 | wait(0.2); |
| norbianisa | 0:b2913c0bac17 | 11 | myled = 0; |
| norbianisa | 0:b2913c0bac17 | 12 | myled2 = 1; |
| norbianisa | 0:b2913c0bac17 | 13 | wait(0.2); |
| norbianisa | 0:b2913c0bac17 | 14 | } |
| norbianisa | 0:b2913c0bac17 | 15 | } |