mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
ST7920 ESP32 fix (#2962)
Co-authored-by: Marcin Depa <m.depa91@gmail.com>
This commit is contained in:
parent
c6956527d1
commit
cb0677cafe
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ using st7920_writer_t = std::function<void(ST7920 &)>;
|
|||
class ST7920 : public PollingComponent,
|
||||
public display::DisplayBuffer,
|
||||
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
|
||||
spi::DATA_RATE_1MHZ> {
|
||||
spi::DATA_RATE_200KHZ> {
|
||||
public:
|
||||
void set_writer(st7920_writer_t &&writer) { this->writer_local_ = writer; }
|
||||
void set_height(uint16_t height) { this->height_ = height; }
|
||||
|
|
Loading…
Reference in a new issue