This is a Testing library
LightSensor.h
- Committer:
- javiersing
- Date:
- 2016-11-28
- Revision:
- 0:eae38e61d806
File content as of revision 0:eae38e61d806:
float readLightSensor(AnalogIn sig, AnalogIn ref)
{
float opVoltage = 3.3/ref.read();
float lightSen = opVoltage *sig.read();
return lightSen;
}