kirthiga annamalai
/
led_test
led test fork
Fork of mbed_blinky by
main.cpp@0:9977ec10a48f, 2015-01-12 (annotated)
- Committer:
- kirthigaannamalai
- Date:
- Mon Jan 12 08:59:03 2015 +0000
- Revision:
- 0:9977ec10a48f
- Child:
- 1:88602b1209a4
added led2
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 | 0:9977ec10a48f | 10 | wait(0.2); |
kirthigaannamalai | 0:9977ec10a48f | 11 | myled = 0; |
kirthigaannamalai | 0:9977ec10a48f | 12 | myled2=1; |
kirthigaannamalai | 0:9977ec10a48f | 13 | wait(0.2); |
kirthigaannamalai | 0:9977ec10a48f | 14 | } |
kirthigaannamalai | 0:9977ec10a48f | 15 | } |