6static const char *
const TAG =
"st7567_i2c";
11 auto err = this->
write(
nullptr, 0);
21 LOG_DISPLAY(
"",
"I2CST7567",
this);
30 LOG_UPDATE_INTERVAL(
this);
33 ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
46 this->
command(esphome::st7567_base::ST7567_PAGE_ADDR +
y);
47 this->
command(esphome::st7567_base::ST7567_COL_ADDR_H);
50 static const size_t BLOCK_SIZE = 64;
53 size_t chunk = remaining > BLOCK_SIZE ? BLOCK_SIZE : remaining;
void mark_failed()
Mark this component as failed.
ErrorCode write_register(uint8_t a_register, const uint8_t *data, size_t len) const
writes an array of bytes to a specific register in the I²C device
ErrorCode write(const uint8_t *data, size_t len) const
writes an array of bytes to a device using an I2CBus
bool write_byte(uint8_t a_register, uint8_t data) const
const char * model_str_()
int get_height_internal() override
int get_width_internal() override
void command(uint8_t value) override
void write_display_data() override
void dump_config() override
@ ERROR_OK
No error found during execution of method.