kirthiga annamalai
/
led_test
led test fork
Fork of mbed_blinky by
main.cpp@1:88602b1209a4, 2015-01-12 (annotated)
- Committer:
- kirthigaannamalai
- Date:
- Mon Jan 12 09:00:28 2015 +0000
- Revision:
- 1:88602b1209a4
- Parent:
- 0:9977ec10a48f
- Child:
- 2:9126c76d99ab
slow down 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 | 1:88602b1209a4 | 10 | wait(0.5); |
kirthigaannamalai | 0:9977ec10a48f | 11 | myled = 0; |
kirthigaannamalai | 0:9977ec10a48f | 12 | myled2=1; |
kirthigaannamalai | 1:88602b1209a4 | 13 | wait(0.5); |
kirthigaannamalai | 0:9977ec10a48f | 14 | } |
kirthigaannamalai | 0:9977ec10a48f | 15 | } |