8 static const char *
const TAG =
"gp8403.output";
10 static const uint8_t OUTPUT_REGISTER = 0x02;
13 ESP_LOGCONFIG(TAG,
"GP8403 Output:");
14 ESP_LOGCONFIG(TAG,
" Channel: %u", this->
channel_);
18 uint16_t value = ((uint16_t) (state * 4095)) << 4;
21 ESP_LOGE(TAG,
"Error writing to GP8403, code %d", err);
void dump_config() override
void write_state(float state) override
No error found during execution of method.
Implementation of SPI Controller mode.
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.