ST7920 ESP32 fix (#2962)

Co-authored-by: Marcin Depa <m.depa91@gmail.com>
This commit is contained in:
marsjan155 2021-12-29 22:34:30 +01:00 committed by GitHub
parent c6956527d1
commit cb0677cafe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; }