This is a Testing library
Diff: LightSensor.h
- Revision:
- 0:eae38e61d806
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LightSensor.h Mon Nov 28 13:00:21 2016 +0000 @@ -0,0 +1,6 @@ +float readLightSensor(AnalogIn sig, AnalogIn ref) +{ + float opVoltage = 3.3/ref.read(); + float lightSen = opVoltage *sig.read(); + return lightSen; +} \ No newline at end of file