vcvvc

Dependencies:   mbed

main.cpp

Committer:
keerthivasan
Date:
2015-07-16
Revision:
0:6be3100746b3

File content as of revision 0:6be3100746b3:

#include "mbed.h"

DigitalOut a(LED1);
DigitalOut b(LED2);
DigitalOut c(LED3);
DigitalOut d(LED4);
AnalogIn x(p20);

int main() {
    while(1){
    a=x;
    wait(2);    
 b=x;
    wait(2);    
 c=x;
    wait(2);    
 d=x;
    wait(2);    
}}