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@2:ecc77165d638, 2020-11-09 (annotated)
- Committer:
- subhashkummara
- Date:
- Mon Nov 09 13:38:37 2020 +0000
- Revision:
- 2:ecc77165d638
- Parent:
- 1:cac8ab1bb9a8
no changes t oprevious
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 | 1:cac8ab1bb9a8 | 10 | wait(0.5); |
| subhashkummara | 0:b611fcb4447c | 11 | myled1 = 0; |
| subhashkummara | 0:b611fcb4447c | 12 | myled2 = 0; |
| subhashkummara | 1:cac8ab1bb9a8 | 13 | wait(0.5); |
| subhashkummara | 2:ecc77165d638 | 14 | |
| subhashkummara | 0:b611fcb4447c | 15 | } |
| subhashkummara | 0:b611fcb4447c | 16 | } |