Added 2.9" version AP

This commit is contained in:
jjwbruijn
2023-05-07 00:24:06 +02:00
parent 117120c0df
commit bccd617881
5 changed files with 10 additions and 1 deletions

BIN
binaries/AP_FW_2.9.bin Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -84,7 +84,11 @@ void epdShowRun() {
selectLUT(EPD_LUT_NO_REPEATS);
clearScreen();
setColorMode(EPD_MODE_NORMAL, EPD_MODE_INVERT);
#if (SCREEN_HEIGHT == 296)
epdPrintBegin(56, 200, EPD_DIRECTION_Y, EPD_SIZE_DOUBLE, EPD_COLOR_BLACK);
#else
epdPrintBegin(16, 55, EPD_DIRECTION_X, EPD_SIZE_DOUBLE, EPD_COLOR_BLACK);
#endif
epdpr("AP Mode");
epdPrintEnd();
draw();

View File

@@ -17,4 +17,9 @@ make BUILD=zbs154v033 CPU=8051 SOC=zbs243 > /dev/null
mv main.bin ../binaries/AP_FW_1.54.bin -v
make clean > /dev/null
echo -e "\n\nBuilding 2.9 version..."
make BUILD=zbs29v033 CPU=8051 SOC=zbs243 > /dev/null
mv main.bin ../binaries/AP_FW_2.9.bin -v
make clean > /dev/null
php packagebinaries.php

View File

@@ -51,7 +51,7 @@ void epdWriteByte(uint8_t b) {
epdSend(b);
epdByteCounter++;
// check if we need to switch to a
if (epdByteCounter == (SCREEN_HEIGHT * SCREEN_WIDTH / 8)) {
if (epdByteCounter == (SCREEN_HEIGHT * (SCREEN_WIDTH / 8))) {
epdDeselect();
endWriteFramebuffer();
beginWriteFramebuffer(EPD_COLOR_RED);