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:b611fcb4447c, 2020-11-09 (annotated)
- Committer:
- subhashkummara
- Date:
- Mon Nov 09 04:10:05 2020 +0000
- Revision:
- 0:b611fcb4447c
- Child:
- 1:cac8ab1bb9a8
added led 2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| subhashkummara | 0:b611fcb4447c | 1 | #include "mbed.h" |
| subhashkummara | 0:b611fcb4447c | 2 | |
| subhashkummara | 0:b611fcb4447c | 3 | DigitalOut myled1(LED1); |
| subhashkummara | 0:b611fcb4447c | 4 | |
| subhashkummara | 0:b611fcb4447c | 5 | DigitalOut myled2(LED2); |
| subhashkummara | 0:b611fcb4447c | 6 | int main() { |
| subhashkummara | 0:b611fcb4447c | 7 | while(1) { |
| subhashkummara | 0:b611fcb4447c | 8 | myled1 = 1; |
| subhashkummara | 0:b611fcb4447c | 9 | myled2 = 1; |
| subhashkummara | 0:b611fcb4447c | 10 | wait(0.2); |
| subhashkummara | 0:b611fcb4447c | 11 | myled1 = 0; |
| subhashkummara | 0:b611fcb4447c | 12 | myled2 = 0; |
| subhashkummara | 0:b611fcb4447c | 13 | wait(0.2); |
| subhashkummara | 0:b611fcb4447c | 14 | } |
| subhashkummara | 0:b611fcb4447c | 15 | } |