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:513d6c37ab53, 2019-10-15 (annotated)
- Committer:
- ryma
- Date:
- Tue Oct 15 12:56:13 2019 +0000
- Revision:
- 0:513d6c37ab53
- Child:
- 1:be0dd52c8a40
added led2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ryma | 0:513d6c37ab53 | 1 | #include "mbed.h" |
| ryma | 0:513d6c37ab53 | 2 | |
| ryma | 0:513d6c37ab53 | 3 | DigitalOut myled(LED1); |
| ryma | 0:513d6c37ab53 | 4 | DigitalOut myled2(LED1); |
| ryma | 0:513d6c37ab53 | 5 | int main() { |
| ryma | 0:513d6c37ab53 | 6 | while(1) { |
| ryma | 0:513d6c37ab53 | 7 | myled = 1; |
| ryma | 0:513d6c37ab53 | 8 | myled2 = 0; |
| ryma | 0:513d6c37ab53 | 9 | |
| ryma | 0:513d6c37ab53 | 10 | wait(0.2); |
| ryma | 0:513d6c37ab53 | 11 | myled = 0; |
| ryma | 0:513d6c37ab53 | 12 | myled2 = 0; |
| ryma | 0:513d6c37ab53 | 13 | wait(0.2); |
| ryma | 0:513d6c37ab53 | 14 | } |
| ryma | 0:513d6c37ab53 | 15 | } |