Compare commits
2 Commits
0303250df8
...
0ad99f5c6e
Author | SHA1 | Date | |
---|---|---|---|
0ad99f5c6e | |||
84d8329b2b |
@ -1 +1 @@
|
|||||||
Subproject commit 2bad84d2e6cfc9b4f332f351e16534c1472094e2
|
Subproject commit 2cb38b9fdcc4bec48d3b17b2b704a21ada23794a
|
@ -23,24 +23,19 @@ int main()
|
|||||||
|
|
||||||
serial << F("e-Paper demo") << F("\r\n");
|
serial << F("e-Paper demo") << F("\r\n");
|
||||||
|
|
||||||
Epd<spi_t> epd;
|
auto einkDisplay = eink::Eink<200, 200, spi_t, io::P::C1, io::P::C0, io::P::C2>{};
|
||||||
if (epd.Init() != 0) {
|
einkDisplay.init();
|
||||||
serial << F("e-Paper init failed") << F("\r\n");
|
|
||||||
serial.flushTx();
|
|
||||||
_delay_ms(1000);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
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");
|
||||||
epd.DisplayClear();
|
einkDisplay.clear();
|
||||||
|
|
||||||
serial << F("e-Paper draw") << F("\r\n");
|
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");
|
serial << F("e-Paper sleep") << F("\r\n");
|
||||||
epd.Sleep();
|
einkDisplay.sleep();
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
serial << F("e-Paper running") << F("\r\n");
|
serial << F("e-Paper running") << F("\r\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user