1#ifndef SENSESP_TRANSFORMS_ANALOGVOLTAGE_H_
2#define SENSESP_TRANSFORMS_ANALOGVOLTAGE_H_
7#define MAX_ANALOG_OUTPUT 4096
40 AnalogVoltage(
float max_voltage = 3.3,
float multiplier = 1.0,
41 float offset = 0.0,
const String& config_path =
"");
42 virtual void set(
const float& input)
override;
43 virtual bool to_json(JsonObject& root)
override;
44 virtual bool from_json(
const JsonObject& config)
override;
A transform that takes the output of an analog-to-digital converter and outputs the voltage that went...
virtual bool to_json(JsonObject &root) override
virtual void set(const float &input) override
AnalogVoltage(float max_voltage=3.3, float multiplier=1.0, float offset=0.0, const String &config_path="")
virtual bool from_json(const JsonObject &config) override
const String ConfigSchema(const SmartSwitchController &obj)