Refactor interface to be fully static

This commit is contained in:
BlackMark committed 2022-05-29 10:25:26 +02:00
1 parent 594904d9b0
commit a33499ffb2
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -23,19 +23,19 @@ int main()
serial << F("e-Paper demo") << F("\r\n");
Epd<spi_t, io::P::C1, io::P::C0, io::P::C2> eink;
eink.Init();
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");
eink.DisplayClear();
einkDisplay.clear();
serial << F("e-Paper draw") << F("\r\n");
eink.DisplayFrame(IMAGE_BLACK, IMAGE_RED);
einkDisplay.draw(IMAGE_BLACK, IMAGE_RED);
serial << F("e-Paper sleep") << F("\r\n");
eink.Sleep();
einkDisplay.sleep();
while (true) {
serial << F("e-Paper running") << F("\r\n");