Skip to content

Commit 8306e2a

Browse files
committed
add custom pixel buffer for inkplate2
1 parent 2f35dab commit 8306e2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/graphics/ImageColor/ImageColor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ class ImageColor
114114

115115

116116
private:
117-
117+
#ifdef ARDUINO_INKPLATE2
118+
uint8_t pixelBuffer[E_INK_HEIGHT * 4 + 5];
119+
#else
118120
uint8_t pixelBuffer[E_INK_WIDTH * 4 + 5];
121+
#endif
119122
static uint8_t (*jpegDitherBuffer)[18];
120123
//static int16_t (*ditherBuffer)[8][E_INK_WIDTH + 20];
121124
static int16_t ditherBuffer[3][8][E_INK_WIDTH + 20];

0 commit comments

Comments
 (0)