ESPHome  2024.11.1
ssd1306_i2c.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace ssd1306_i2c {
9 
11  public:
12  void setup() override;
13  void dump_config() override;
14 
15  protected:
16  void command(uint8_t value) override;
17  void write_display_data() override;
18 
19  enum ErrorCode { NONE = 0, COMMUNICATION_FAILED } error_code_{NONE};
20 };
21 
22 } // namespace ssd1306_i2c
23 } // namespace esphome
enum esphome::ssd1306_i2c::I2CSSD1306::ErrorCode NONE
void command(uint8_t value) override
Definition: ssd1306_i2c.cpp:39
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133