led test fork

Dependencies:   mbed

Fork of mbed_blinky by kirthiga annamalai

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?

UserRevisionLine numberNew 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 }