simple project to control mirrorless camera
Dependencies: mbed BLE_API nRF51822
Light/Light.cpp
- Committer:
- suhamera
- Date:
- 2015-10-21
- Revision:
- 0:81f1818af032
File content as of revision 0:81f1818af032:
#include "Light.h" #include "mbed.h" Light::Light(PinName pin) : _pin(pin) { _LightValue = 0.0; } float Light::getLightValue() { _LightValue = _pin.read()*1000.0f; return _LightValue; }