|
MistyGro API
C++ API for MistyGro's ESP32 controller based on the Arduino framework
|
Light dependent resistor wrapper. More...
#include <ldr.h>
Public Member Functions | |
| LDR (int samples, ADC *adc) | |
| Construct a new LDR object. More... | |
| float | read_voltage () |
| Read voltage from ADC for LDR. Make sure ADC is initialised before calling this method. More... | |
| LDR::LDR | ( | int | samples, |
| ADC * | adc | ||
| ) |
| float LDR::read_voltage | ( | ) |