7static const char *
const TAG =
"ssd1306_i2c";
10 ESP_LOGCONFIG(TAG,
"Running setup");
13 auto err = this->
write(
nullptr, 0);
23 LOG_DISPLAY(
"",
"I2C SSD1306",
this);
25 ESP_LOGCONFIG(TAG,
" Model: %s", this->
model_str_());
33 " Inverted Color: %s",
36 LOG_UPDATE_INTERVAL(
this);
39 ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
59 for (uint8_t &j : data)
65 size_t block_size = 16;
72 uint8_t data[block_size];
73 for (uint8_t &j : data)
virtual void mark_failed()
Mark this component as failed.
bool write_bytes(uint8_t a_register, const uint8_t *data, uint8_t len, bool stop=true)
ErrorCode write(const uint8_t *data, size_t len, bool stop=true)
writes an array of bytes to a device using an I2CBus
bool write_byte(uint8_t a_register, uint8_t data, bool stop=true)
int get_width_internal() override
const char * 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.
Providing packet encoding functions for exchanging data with a remote host.