mirror of
https://github.com/usetrmnl/bb_epaper.git
synced 2026-04-29 13:43:26 -07:00
Fixed UC81xx writePlane to set the address window and use the correct memory plane
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user