hopefully fixed 'random noise' screen update

This commit is contained in:
Jelmer
2023-02-25 12:10:27 +01:00
parent 353a5a78dd
commit 3cc1f17f12
6 changed files with 7 additions and 8 deletions

View File

@@ -433,6 +433,9 @@ void drawImageAtAddress(uint32_t addr, uint8_t lut) {
pr(" complete.\n");
break;
default: // prevent drawing from an unknown file image type
pr("Image with type 0x%02X was requested, but we don't know what to do with that currently...\n", eih->dataType);
return;
}
addOverlay();
drawWithSleep();

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -141,7 +141,7 @@ uint8_t channelSelect() { // returns 0 if no accesspoints were found
return highestSlot;
}
void mainProtocolLoop(void) {
void main() {
// displayLoop(); // remove me
setupPortsInitial();
powerUp(INIT_BASE | INIT_UART);
@@ -340,7 +340,3 @@ void mainProtocolLoop(void) {
}
}
}
void main(void) {
mainProtocolLoop();
}

View File

@@ -70,12 +70,12 @@ void showSplashScreen() {
setColorMode(EPD_MODE_NORMAL, EPD_MODE_INVERT);
#if (SCREEN_WIDTH == 152) // 1.54"
epdPrintBegin(12, 2, EPD_DIRECTION_X, EPD_SIZE_DOUBLE, EPD_COLOR_BLACK);
epdPrintBegin(12, 52, EPD_DIRECTION_X, EPD_SIZE_DOUBLE, EPD_COLOR_BLACK);
epdpr("Starting");
epdPrintEnd();
loadRawBitmap(oepli, 0, 12, EPD_COLOR_BLACK);
loadRawBitmap(cloud, 0, 0, EPD_COLOR_RED);
loadRawBitmap(oepli, 8, 12, EPD_COLOR_BLACK);
loadRawBitmap(cloud, 8, 0, EPD_COLOR_RED);
epdPrintBegin(5, 136, EPD_DIRECTION_X, EPD_SIZE_SINGLE, EPD_COLOR_RED);
epdpr("%02X%02X", mSelfMac[7], mSelfMac[6]);