simple project to control mirrorless camera

Dependencies:   mbed BLE_API nRF51822

Committer:
vilesovds
Date:
Fri Aug 02 08:22:18 2019 +0000
Revision:
4:adfb32273577
Parent:
0:81f1818af032
Simple project to control mirrorless camera

Who changed what in which revision?

UserRevisionLine numberNew contents of line
suhamera 0:81f1818af032 1 #include "Light.h"
suhamera 0:81f1818af032 2 #include "mbed.h"
suhamera 0:81f1818af032 3
suhamera 0:81f1818af032 4 Light::Light(PinName pin) : _pin(pin) {
suhamera 0:81f1818af032 5 _LightValue = 0.0;
suhamera 0:81f1818af032 6 }
suhamera 0:81f1818af032 7
suhamera 0:81f1818af032 8 float Light::getLightValue() {
suhamera 0:81f1818af032 9 _LightValue = _pin.read()*1000.0f;
suhamera 0:81f1818af032 10 return _LightValue;
suhamera 0:81f1818af032 11 }