0

2.9" ePaper Displays Grayscale - Hex numbers ?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

2.9" ePaper Displays Grayscale - Hex numbers ?

by chagrincyclist on Wed Sep 15, 2021 8:02 pm

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!!

chagrincyclist
 
Posts: 11
Joined: Sun Jun 07, 2020 10:03 am

Re: 2.9" ePaper Displays Grayscale - Hex numbers ?

by mikeysklar on Thu Sep 16, 2021 4:48 pm

Looking at the Adafruit_EPD library I do see:

Code: Select all | TOGGLE FULL SIZE
#define COLOR1 EPD_BLACK
#define COLOR2 EPD_LIGHT
#define COLOR3 EPD_DARK


https://github.com/adafruit/Adafruit_EP ... _gray4.ino

Code: Select all | TOGGLE FULL SIZE
    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;
    }


https://github.com/adafruit/Adafruit_EP ... cale4_T5.h

mikeysklar
 
Posts: 5885
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.