11 auto err = this->
write(
nullptr, 0);
20 LOG_DISPLAY(
"",
"I2C SSD1306",
this);
28 " Inverted Color: %s",
33 LOG_UPDATE_INTERVAL(
this);
48 this->
command(start_column & 0x0F);
49 this->
command(0x10 | (start_column >> 4));
52 for (uint8_t &j : data)
58 size_t block_size = 16;
65 uint8_t data[block_size];
66 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.
ESPHOME_LOG_TAG(TAG, "ssd1306_i2c")