led test fork

Dependencies:   mbed

Fork of mbed_blinky by kirthiga annamalai

Committer:
kirthigaannamalai
Date:
Mon Jan 12 09:12:20 2015 +0000
Revision:
3:e075f4f361c8
Parent:
2:9126c76d99ab
Child:
4:1bb0ce648fc2
slowdown 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 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 }