ESPHome  2022.6.3
ssd1322_spi.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace ssd1322_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  void data(uint8_t value) override;
23 
24  void write_display_data() override;
25 
27 };
28 
29 } // namespace ssd1322_spi
30 } // namespace esphome
void data(uint8_t value) override
Definition: ssd1322_spi.cpp:44
void command(uint8_t value) override
Definition: ssd1322_spi.cpp:31
Definition: a4988.cpp:4
void set_dc_pin(GPIOPin *dc_pin)
Definition: ssd1322_spi.h:14