Change example to use four wire spi

This commit is contained in:
BlackMark 2022-05-28 17:16:01 +02:00
parent 3fdfa73ff4
commit a6a30713e2

View File

@ -441,8 +441,7 @@ constexpr auto IMAGE [[gnu::progmem]] = util::to_array<uint8_t>({
int main()
{
using spi_t = spi::Software<spi::SoftwareConfig<io::P::C4, io::P::NONE, io::P::C5, io::P::C3, 100'000,
spi::Mode::MODE_0, spi::BitOrder::MSB_FIRST, 9>>;
using spi_t = spi::Software<spi::SoftwareConfig<io::P::C4, io::P::NONE, io::P::C5, io::P::C3>>;
uart_t serial;
serial.init();
@ -451,9 +450,7 @@ int main()
serial << F("e-Paper demo") << F("\r\n");
io::Pin<io::P::C2>::dir(io::Dir::OUT);
io::Pin<io::P::C2>::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");