E-ink BMP file not showing the red color

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Casperdroid5
 
Posts: 6
Joined: Sun Oct 17, 2021 5:29 pm

E-ink BMP file not showing the red color

Post by Casperdroid5 »

I'm working on a project using a 4.2 inch 3 color (red, black, white) E-ink paper. Everything is working as it should except for one thing:
The red won't show up when using adafruits tutorial: https://learn.adafruit.com/preparing-gr ... s?view=all . The pictures shows everything that should be red, as black. I then downloaded adafruits little snake picture from here: https://learn.adafruit.com/adafruit-ein ... ng-bitmaps and guess what? when i download the snake picture (python i think) it works like charm... I do this using Adobe Photoshop and I read the tutorial 6 times and tried a lot of different things. Same size (400 by 300), bitsize the same as the snake etc. Does anyone know what to do?

User avatar
adafruit_support_carter
 
Posts: 29161
Joined: Tue Nov 29, 2016 2:45 pm

Re: E-ink BMP file not showing the red color

Post by adafruit_support_carter »

Just to be sure - it's working as expected with the BMP from the Learn Guide? But not with a BMP you create using Photoshop?

User avatar
Casperdroid5
 
Posts: 6
Joined: Sun Oct 17, 2021 5:29 pm

Re: E-ink BMP file not showing the red color

Post by Casperdroid5 »

Yes, it is working with the bmp file from the website I provided. I created my own using your adobe photoshop guide. Read it very carefully, but it did not work. All of the red elements turn black.

User avatar
adafruit_support_carter
 
Posts: 29161
Joined: Tue Nov 29, 2016 2:45 pm

Re: E-ink BMP file not showing the red color

Post by adafruit_support_carter »

OK, just wanted to double check.

Yah, so probably just a Photoshop setting. Things have to be just right the eink. That guide you are using *should* give you the necessary steps in Photoshop:
https://learn.adafruit.com/preparing-gr ... -photoshop

Can you link to the specific eink display you are using.

User avatar
Casperdroid5
 
Posts: 6
Joined: Sun Oct 17, 2021 5:29 pm

Re: E-ink BMP file not showing the red color

Post by Casperdroid5 »

Yes. I followed the guid very carefully. I re-read it like 5 times.
This is the screen I used: It can display your snake (python) picture, with no problem at all. But when I try to create my own, it doesn't work. The red, becomes all black.
I have put them side by side:
differences.png
differences.png (130.68 KiB) Viewed 212 times
I did change the colors on the BPS (my own picture) to match yours. Well I think it is maching yours. But sadly that didn't help either. The original color settings didn't work either, obviously. I do find it interresting that your pictures shows ALP and mine only shows A. This could be the problem??
Also, i noticed this: "Once you have a satisfactory conversion, we’ll export in BMP format…" Later on you start saying "save as", I got confused by that a little.
There is no way to export in BMP format, I think. You can only SAVE as a BMP format. Is this correct?

User avatar
Casperdroid5
 
Posts: 6
Joined: Sun Oct 17, 2021 5:29 pm

Re: E-ink BMP file not showing the red color

Post by Casperdroid5 »

I have got some good new!
and some bad news...

The good news: I figured it out! And now I got my beautifull red!

The bad news: you guys screwed up bad.
You used this hex code for red: #d72627
This results in black. This also shows within your pyton picture. The "2.13" E-ink" part is black with some red in it and the "tri-color" is mainly black with some red accents in it.

This is the hex code you should have used in your guide/pallet for the color red: #F52025
White was also, NOT the right color.

I changed the 3 Color ACT file for you and the others:
eink-3coloract.zip
(149 Bytes) Downloaded 7 times
I wanna suggest you fix this in your guide, but that is up to you.
My screen is now working exactly as intended.

Thank you for your help!
Attachments
eink-3color.zip
(149 Bytes) Downloaded 6 times

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: E-ink BMP file not showing the red color

Post by pburgess »

The palette is correct, image appears correct in Photoshop after conversion, the issue might be in whatever code/library is reading the resulting BMP to the e-ink display. What are you using for that part?

User avatar
Casperdroid5
 
Posts: 6
Joined: Sun Oct 17, 2021 5:29 pm

Re: E-ink BMP file not showing the red color

Post by Casperdroid5 »

Hmmm. In that case. I use GxEPD2 the libary. It is based on your libary.
https://github.com/ZinggJM/GxEPD2

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

Return to “General Project help”