
simple project to control mirrorless camera
Dependencies: mbed BLE_API nRF51822
Light/Light.h@4:adfb32273577, 2019-08-02 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
suhamera | 0:81f1818af032 | 1 | #ifndef MBED_LIGHT_H |
suhamera | 0:81f1818af032 | 2 | #define MBED_LIGHT_H |
suhamera | 0:81f1818af032 | 3 | |
suhamera | 0:81f1818af032 | 4 | #include "mbed.h" |
suhamera | 0:81f1818af032 | 5 | |
suhamera | 0:81f1818af032 | 6 | class Light { |
suhamera | 0:81f1818af032 | 7 | public: |
suhamera | 0:81f1818af032 | 8 | Light(PinName pin); |
suhamera | 0:81f1818af032 | 9 | float getLightValue(void); |
suhamera | 0:81f1818af032 | 10 | |
suhamera | 0:81f1818af032 | 11 | private: |
suhamera | 0:81f1818af032 | 12 | AnalogIn _pin; |
suhamera | 0:81f1818af032 | 13 | float _LightValue; |
suhamera | 0:81f1818af032 | 14 | }; |
suhamera | 0:81f1818af032 | 15 | |
suhamera | 0:81f1818af032 | 16 | #endif |