5 namespace ssd1327_i2c {
7 static const char *
const TAG =
"ssd1327_i2c";
10 ESP_LOGCONFIG(TAG,
"Setting up I2C SSD1327...");
13 auto err = this->
write(
nullptr, 0);
23 LOG_DISPLAY(
"",
"I2C SSD1327",
this);
25 ESP_LOGCONFIG(TAG,
" Model: %s", this->
model_str_());
27 LOG_UPDATE_INTERVAL(
this);
30 ESP_LOGE(TAG,
"Communication with SSD1327 failed!");
37 for (uint8_t &j : data)
ErrorCode write(const uint8_t *data, size_t len, bool stop=true)
writes an array of bytes to a device using an I2CBus
void dump_config() override
No error found during execution of method.
size_t get_buffer_length_()
void command(uint8_t value) override
bool write_byte(uint8_t a_register, uint8_t data, bool stop=true)
virtual void mark_failed()
Mark this component as failed.
Implementation of SPI Controller mode.
const char * model_str_()
void write_display_data() override
bool write_bytes(uint8_t a_register, const uint8_t *data, uint8_t len, bool stop=true)