8 static const char *
const TAG =
"mcp47a1";
11 ESP_LOGCONFIG(TAG,
"MCP47A1 Output:");
16 const uint8_t value =
remap(state, 0.0f, 1.0f, 63, 0);
void write_state(float state) override
void dump_config() override
T remap(U value, U min, U max, T min_out, T max_out)
Remap value from the range (min, max) to (min_out, max_out).
bool write_byte(uint8_t a_register, uint8_t data, bool stop=true)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...