Compare commits

...

2 Commits

Author SHA1 Message Date
0ad99f5c6e Refactor interface to be fully static 2022-05-26 16:03:50 +02:00
84d8329b2b Refactor pins to be user-provided 2022-05-26 15:16:39 +02:00
2 changed files with 6 additions and 11 deletions

@ -1 +1 @@
Subproject commit 2bad84d2e6cfc9b4f332f351e16534c1472094e2
Subproject commit 2cb38b9fdcc4bec48d3b17b2b704a21ada23794a

View File

@ -23,24 +23,19 @@ int main()
serial << F("e-Paper demo") << F("\r\n");
Epd<spi_t> epd;
if (epd.Init() != 0) {
serial << F("e-Paper init failed") << F("\r\n");
serial.flushTx();
_delay_ms(1000);
return 0;
}
auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::C0, io::P::C2>{};
einkDisplay.init();
serial << F("e-Paper init") << F("\r\n");
serial << F("e-Paper clear") << F("\r\n");
epd.DisplayClear();
einkDisplay.clear();
serial << F("e-Paper draw") << F("\r\n");
epd.DisplayFrame(IMAGE_BLACK, IMAGE_RED);
einkDisplay.draw(IMAGE_BLACK, IMAGE_RED);
serial << F("e-Paper sleep") << F("\r\n");
epd.Sleep();
einkDisplay.sleep();
while (true) {
serial << F("e-Paper running") << F("\r\n");