6static const char *
const TAG =
"ssd1306_i2c";
11 auto err = this->
write(
nullptr, 0);
21 LOG_DISPLAY(
"",
"I2C SSD1306",
this);
29 " Inverted Color: %s",
34 LOG_UPDATE_INTERVAL(
this);
37 ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
57 for (uint8_t &j : data)
63 size_t block_size = 16;
70 uint8_t data[block_size];
71 for (uint8_t &j : data)
void mark_failed()
Mark this component as failed.
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
bool write_bytes(uint8_t a_register, const uint8_t *data, uint8_t len) const
int get_width_internal() override
const LogString * model_str_()
size_t get_buffer_length_()
int get_height_internal() override
void write_display_data() override
void command(uint8_t value) override
void dump_config() override
@ ERROR_OK
No error found during execution of method.