From 139a9182f1ce3e1444f5f47d9e4f287c39d7b3fb Mon Sep 17 00:00:00 2001 From: Laurence Bank Date: Mon, 11 Nov 2024 11:23:19 +0000 Subject: [PATCH] Fixed partial update demo --- examples/partial_update/partial_update.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/partial_update/partial_update.ino b/examples/partial_update/partial_update.ino index 02e8e05..be1ecb2 100644 --- a/examples/partial_update/partial_update.ino +++ b/examples/partial_update/partial_update.ino @@ -28,9 +28,9 @@ // both old and new data each update. // #include -BBEPAPER bbep(EP295_128x296); +//BBEPAPER bbep(EP27B_176x264); //BBEPAPER bbep(EP213B_122x250); -//BBEPAPER bbep(EP29_128x296); // Badger2040 +BBEPAPER bbep(EP295_128x296); // My Arduino Nano 33 BLE e-paper adapter #define DC_PIN 16 #define BUSY_PIN 15 @@ -63,15 +63,15 @@ void setup() bbep.initIO(DC_PIN, RESET_PIN, BUSY_PIN, CS_PIN); bbep.setRotation(90); // use panel in landscape orientation // work in bufferless mode (no memory on MCU needed) - DrawScene(i, PLANE_0); // draw "old" data (full refresh only needs "old" data plane) + DrawScene(i, PLANE_DUPLICATE); // draw "old" data (full refresh only needs "old" data plane) bbep.refresh(REFRESH_FULL); // do a full refresh to start bbep.wait(); bbep.sleep(LIGHT_SLEEP); // count from 0 to 9 using partial updates while (i<10) { - DrawScene(i, 0); // draw scene to old plane 0 (not always needed, but doesn't hurt to do) + DrawScene(i, 1); // draw scene to (old) plane 1 (not always needed, but doesn't hurt to do) i++; - DrawScene(i, 1); // new scene drawn to plane 1 + DrawScene(i, 0); // new scene drawn to (new) plane 0 bbep.refresh(REFRESH_PARTIAL); bbep.wait(); bbep.sleep(LIGHT_SLEEP);