Refactor interface to be fully static

This commit is contained in:
BlackMark 2022-05-26 16:03:50 +02:00
parent 84d8329b2b
commit 0ad99f5c6e
2 changed files with 6 additions and 6 deletions

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

View File

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