mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +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,
|
class ST7920 : public PollingComponent,
|
||||||
public display::DisplayBuffer,
|
public display::DisplayBuffer,
|
||||||
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
|
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:
|
public:
|
||||||
void set_writer(st7920_writer_t &&writer) { this->writer_local_ = writer; }
|
void set_writer(st7920_writer_t &&writer) { this->writer_local_ = writer; }
|
||||||
void set_height(uint16_t height) { this->height_ = height; }
|
void set_height(uint16_t height) { this->height_ = height; }
|
||||||
|
|
Loading…
Reference in a new issue