1#ifndef SENSESP_TRANSFORMS_VOLTAGE_DIVIDER_H_
2#define SENSESP_TRANSFORMS_VOLTAGE_DIVIDER_H_
38 virtual void set(
const float& Vout)
override;
40 virtual bool to_json(JsonObject& root)
override;
41 virtual bool from_json(
const JsonObject& config)
override;
79 virtual void set(
const float& Vout)
override;
82 virtual bool to_json(JsonObject& root)
override;
83 virtual bool from_json(
const JsonObject& config)
override;
Uses the voltage divider formula to calculate (and output) the resistance of R1 in the circuit.
virtual bool from_json(const JsonObject &config) override
virtual void set(const float &Vout) override
virtual bool to_json(JsonObject &root) override
VoltageDividerR1(float R2, float Vin=3.3, const String &config_path="")
Uses the voltage divider formula to calculate (and output) the resistance of R2 in the circuit.
virtual bool from_json(const JsonObject &config) override
virtual bool to_json(JsonObject &root) override
VoltageDividerR2(float R1, float Vin=3.3, const String &config_path="")
virtual void set(const float &Vout) override
const String ConfigSchema(const SmartSwitchController &obj)