ESPHome  2024.3.1
ssd1331_spi.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace ssd1331_spi {
9 
11  public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
12  spi::DATA_RATE_8MHZ> {
13  public:
14  void set_dc_pin(GPIOPin *dc_pin) { dc_pin_ = dc_pin; }
15 
16  void setup() override;
17 
18  void dump_config() override;
19 
20  protected:
21  void command(uint8_t value) override;
22 
23  void write_display_data() override;
24 
26 };
27 
28 } // namespace ssd1331_spi
29 } // namespace esphome
void command(uint8_t value) override
Definition: ssd1331_spi.cpp:29
The SPIDevice is what components using the SPI will create.
Definition: spi.h:408
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
void set_dc_pin(GPIOPin *dc_pin)
Definition: ssd1331_spi.h:14