kirthiga annamalai
/
mbed_blinky
LED hello world
main.cpp@3:e075f4f361c8, 2015-01-12 (annotated)
- Committer:
- kirthigaannamalai
- Date:
- Mon Jan 12 09:12:20 2015 +0000
- Revision:
- 3:e075f4f361c8
- Parent:
- 2:9126c76d99ab
slowdown blink rate
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kirthigaannamalai | 0:9977ec10a48f | 1 | #include "mbed.h" |
kirthigaannamalai | 0:9977ec10a48f | 2 | |
kirthigaannamalai | 0:9977ec10a48f | 3 | DigitalOut myled(LED1); |
kirthigaannamalai | 0:9977ec10a48f | 4 | DigitalOut myled2(LED2); |
kirthigaannamalai | 0:9977ec10a48f | 5 | |
kirthigaannamalai | 0:9977ec10a48f | 6 | int main() { |
kirthigaannamalai | 0:9977ec10a48f | 7 | while(1) { |
kirthigaannamalai | 0:9977ec10a48f | 8 | myled = 1; |
kirthigaannamalai | 0:9977ec10a48f | 9 | myled2=0; |
kirthigaannamalai | 3:e075f4f361c8 | 10 | wait(0.5); |
kirthigaannamalai | 0:9977ec10a48f | 11 | myled = 0; |
kirthigaannamalai | 0:9977ec10a48f | 12 | myled2=1; |
kirthigaannamalai | 3:e075f4f361c8 | 13 | wait(0.5); |
kirthigaannamalai | 0:9977ec10a48f | 14 | } |
kirthigaannamalai | 0:9977ec10a48f | 15 | } |