Skip to content

Commit 4b36560

Browse files
committed
Add color palette definitions for colored displays
1 parent ce43aaa commit 4b36560

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/boards/Inkplate13/pins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#ifdef ARDUINO_ESP32S3_DEV
77
#define IO_INT_ADDR 0x20
88

9+
// Color display of the spectra panel
10+
static uint32_t pallete[] = { 0x000000, 0xFFFFFF, 0xFFFF00, 0xFF0000, 0x0000FF, 0x00FF00};
11+
912
// Pin on the internal io expander which controls MOSFET for turning on and off the SD card
1013
#define SD_PMOS_PIN IO_PIN_B2 // 10
1114

src/boards/Inkplate2/pins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// Header guard for the Arduino include
66
#ifdef ARDUINO_INKPLATE2
77

8+
// Color Palette of the Inkplate 2 panel
9+
static uint32_t pallete[] = {0xFFFFFF, 0x000000, 0xFF0000};
10+
811
#define EPAPER_RST_PIN 19
912
#define EPAPER_DC_PIN 33
1013
#define EPAPER_CS_PIN 15

src/boards/Inkplate6COLOR/pins.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#ifdef ARDUINO_INKPLATECOLOR
77
#define IO_INT_ADDR 0x20
88

9+
// Color palette of the 6COLOR panel
10+
static uint32_t pallete[] = {0x000000, 0xFFFFFF, 0x00FF00, 0x0000FF, 0xFF0000, 0xFFFF00, 0xFF8000};
11+
912
// Pin on the internal io expander which controls MOSFET for turning on and off the SD card
1013
#define SD_PMOS_PIN IO_PIN_B2 // 10
1114

0 commit comments

Comments
 (0)