SAJITH MOHAN CHAKKEDATH / Mbed 2 deprecated IRReflector_QRE1113

Dependencies:   mbed

Committer:
schakkedath3
Date:
Mon Mar 24 14:55:15 2014 +0000
Revision:
1:4909e0967939
Parent:
0:85ca689387fb
This is 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 return(IRIn);
schakkedath3 0:85ca689387fb 11
schakkedath3 0:85ca689387fb 12 };
schakkedath3 0:85ca689387fb 13