Skip to content

Commit 32370e8

Browse files
committed
add image object
1 parent 7d7c77c commit 32370e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/boards/Inkplate10/Inkplate10Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int EPDDriver::initDriver(Inkplate *_inkplatePtr)
8585
_inkplate = _inkplatePtr;
8686

8787
// Initialize the image processing functionalities
88-
beginImage(_inkplatePtr);
88+
image.begin(_inkplatePtr);
8989

9090
// Initialize the all GPIOs
9191
gpioInit();

src/boards/Inkplate10/Inkplate10Driver.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class Inkplate;
3333

3434

35-
class EPDDriver : public Image
35+
class EPDDriver
3636
{
3737
public:
3838
void writePixelInternal(int16_t x, int16_t y, uint16_t color);
@@ -63,6 +63,8 @@ class EPDDriver : public Image
6363

6464
RTC rtc;
6565

66+
Image image;
67+
6668
uint8_t _beginDone = 0;
6769
uint8_t _displayMode;
6870

0 commit comments

Comments
 (0)