SAJITH MOHAN CHAKKEDATH / Mbed 2 deprecated IRReflector_QRE1113

Dependencies:   mbed

Committer:
schakkedath3
Date:
Mon Mar 24 14:53:00 2014 +0000
Revision:
0:85ca689387fb
Child:
1:4909e0967939
This is the library for the IR Reflector QRE1113

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schakkedath3 0:85ca689387fb 1 #include "mbed.h"
schakkedath3 0:85ca689387fb 2
schakkedath3 0:85ca689387fb 3
schakkedath3 0:85ca689387fb 4 //Function to read the Analog voltage
schakkedath3 0:85ca689387fb 5 float IRRead(PinName Pin)
schakkedath3 0:85ca689387fb 6 {
schakkedath3 0:85ca689387fb 7 AnalogIn AIn(Pin);
schakkedath3 0:85ca689387fb 8 float IRIn;
schakkedath3 0:85ca689387fb 9 IRIn=AIn;
schakkedath3 0:85ca689387fb 10 //IRIn=a;
schakkedath3 0:85ca689387fb 11 return(IRIn);
schakkedath3 0:85ca689387fb 12
schakkedath3 0:85ca689387fb 13 };
schakkedath3 0:85ca689387fb 14