Fixed UC81xx writePlane to set the address window and use the correct memory plane

This commit is contained in:
Laurence Bank
2024-10-20 19:27:01 +01:00
parent 8230c2de5e
commit 7683fbc448
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ void setup()
DrawScene(i, 1); // new scene drawn to plane 1
bbep.refresh(REFRESH_PARTIAL);
bbep.wait();
// bbep.sleep(LIGHT_SLEEP);
bbep.sleep(LIGHT_SLEEP);
} // for i
delay(5000); // wait 5 seconds, then erase to white
bbep.setPlane(0);
+4 -2
View File
@@ -1448,9 +1448,11 @@ int bbepWritePlane(BBEPDISP *pBBEP, int iPlane)
if (pBBEP == NULL || pBBEP->ucScreen == NULL || iPlane < PLANE_0 || iPlane > PLANE_DUPLICATE)
return BBEP_ERROR_BAD_PARAMETER;
bbepSetAddrWindow(pBBEP, 0,0, pBBEP->native_width, pBBEP->native_height);
if (pBBEP->chip_type == BBEP_CHIP_UC81xx) {
ucCMD1 = UC8151_DTM1;
ucCMD2 = UC8151_DTM2;
ucCMD1 = UC8151_DTM2;
ucCMD2 = UC8151_DTM1;
} else {
ucCMD1 = SSD1608_WRITE_RAM;
ucCMD2 = SSD1608_WRITE_ALTRAM;