2.9" ePaper Displays Grayscale - Hex numbers ?

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
chagrincyclist
 
Posts: 30
Joined: Sun Jun 07, 2020 10:03 am

2.9" ePaper Displays Grayscale - Hex numbers ?

Post by chagrincyclist »

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

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: 2.9" ePaper Displays Grayscale - Hex numbers ?

Post by mikeysklar »

Looking at the Adafruit_EPD library I do see:

Code: Select all

#define COLOR1 EPD_BLACK
#define COLOR2 EPD_LIGHT
#define COLOR3 EPD_DARK
https://github.com/adafruit/Adafruit_EP ... _gray4.ino

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;
    }
https://github.com/adafruit/Adafruit_EP ... cale4_T5.h

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”