From e1b7226d5d82edf853b01647c5f5ae0ea2f776a7 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 28 May 2022 17:05:02 +0200 Subject: [PATCH] Add support for three wire spi --- eink/eink | 2 +- eink/main.cpp | 7 +++++-- eink/spi | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/eink/eink b/eink/eink index 9a4193e..2e417a0 160000 --- a/eink/eink +++ b/eink/eink @@ -1 +1 @@ -Subproject commit 9a4193ee75ca2e25ff8dc1de5fa1e14802725e04 +Subproject commit 2e417a0f3aa9e187d80f008054b9323fc05afced diff --git a/eink/main.cpp b/eink/main.cpp index 759087c..90610b1 100644 --- a/eink/main.cpp +++ b/eink/main.cpp @@ -441,7 +441,8 @@ 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(); @@ -450,7 +451,9 @@ int main() serial << F("e-Paper demo") << F("\r\n"); - auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::C2, io::P::C0>{}; + 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>{}; einkDisplay.init(); serial << F("e-Paper init") << F("\r\n"); diff --git a/eink/spi b/eink/spi index 999cd0e..852ad5a 160000 --- a/eink/spi +++ b/eink/spi @@ -1 +1 @@ -Subproject commit 999cd0e0c973834e641f7bbeb0c339d696b45415 +Subproject commit 852ad5a3184ef6828e99b439fc078dd7ca83b5df