From 035e8173fefb9f670c2c53f4f49435a7e5f219f0 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 28 May 2022 17:16:01 +0200 Subject: [PATCH] Change example to use four wire spi --- eink/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/eink/main.cpp b/eink/main.cpp index 90610b1..759087c 100644 --- a/eink/main.cpp +++ b/eink/main.cpp @@ -441,8 +441,7 @@ constexpr auto IMAGE [[gnu::progmem]] = util::to_array({ int main() { - using spi_t = spi::Software>; + using spi_t = spi::Software>; uart_t serial; serial.init(); @@ -451,9 +450,7 @@ int main() serial << F("e-Paper demo") << F("\r\n"); - io::Pin::dir(io::Dir::OUT); - io::Pin::write(false); - auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::NONE /*io::P::C2*/, io::P::C0>{}; + auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::C2, io::P::C0>{}; einkDisplay.init(); serial << F("e-Paper init") << F("\r\n");