SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
voltage_multiplier.h
Go to the documentation of this file.
1#ifndef SENSESP_TRANSFORMS_VOLTAGE_MULTIPLIER_H_
2#define SENSESP_TRANSFORMS_VOLTAGE_MULTIPLIER_H_
3
5#include "transform.h"
6
7namespace sensesp {
8
32 public:
33 VoltageMultiplier(uint16_t R1, uint16_t R2, const String& config_path = "");
34
35 virtual void set(const float& input);
36
37 private:
38 uint16_t R1_{};
39 uint16_t R2_{};
40 virtual bool to_json(JsonObject& root) override;
41 virtual bool from_json(const JsonObject& config) override;
42};
43
44const String ConfigSchema(const VoltageMultiplier& obj);
45
46} // namespace sensesp
47#endif
OBSOLETE: Since you can now apply an "output_scale" to the AnalogInput sensor, you don't need this tr...
virtual void set(const float &input)
VoltageMultiplier(uint16_t R1, uint16_t R2, const String &config_path="")
const String ConfigSchema(const SmartSwitchController &obj)