simple project to control mirrorless camera

Dependencies:   mbed BLE_API nRF51822

Light/Light.cpp

Committer:
vilesovds
Date:
2019-08-02
Revision:
4:adfb32273577
Parent:
0:81f1818af032

File content as of revision 4:adfb32273577:

#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;  
}