I'm trying to figure out how to display the four available gray "colors" on the 2.9" ePaper Grayscales display. Looking at the Hex number system 0x000000 to 0xFFFFFF - what are the numbers/letter that designate the grayscales? My understanding is that we have white 0x000000 and black 0xFFFFFF, but what are the two grays in between? I checked the chip data sheet but can't find it. Or perhaps I am going about this all wrong.
Thank you!!
2.9" ePaper Displays Grayscale - Hex numbers ?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- chagrincyclist
- Posts: 30
- Joined: Sun Jun 07, 2020 10:03 am
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 2.9" ePaper Displays Grayscale - Hex numbers ?
Looking at the Adafruit_EPD library I do see:
https://github.com/adafruit/Adafruit_EP ... _gray4.ino
https://github.com/adafruit/Adafruit_EP ... cale4_T5.h
Code: Select all
#define COLOR1 EPD_BLACK
#define COLOR2 EPD_LIGHT
#define COLOR3 EPD_DARK
Code: Select all
if (mode == THINKINK_GRAYSCALE4) {
_epd_init_code = ti_290t5_gray4_init_code;
_epd_lut_code = ti_290t5_gray4_lut_code;
layer_colors[EPD_WHITE] = 0b00;
layer_colors[EPD_BLACK] = 0b11;
layer_colors[EPD_RED] = 0b01;
layer_colors[EPD_GRAY] = 0b10;
layer_colors[EPD_LIGHT] = 0b01;
layer_colors[EPD_DARK] = 0b10;
}
Please be positive and constructive with your questions and comments.