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?
E-ink BMP file not showing the red color
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29388
- Joined: Tue Nov 29, 2016 2:45 pm
Re: E-ink BMP file not showing the red color
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?
- Casperdroid5
- Posts: 6
- Joined: Sun Oct 17, 2021 5:29 pm
Re: E-ink BMP file not showing the red color
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.
- adafruit_support_carter
- Posts: 29388
- Joined: Tue Nov 29, 2016 2:45 pm
Re: E-ink BMP file not showing the red color
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.
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.
- Casperdroid5
- Posts: 6
- Joined: Sun Oct 17, 2021 5:29 pm
Re: E-ink BMP file not showing the red color
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: 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?
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: 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?
- Casperdroid5
- Posts: 6
- Joined: Sun Oct 17, 2021 5:29 pm
Re: E-ink BMP file not showing the red color
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: 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!
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: 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
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: E-ink BMP file not showing the red color
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?
- Casperdroid5
- Posts: 6
- Joined: Sun Oct 17, 2021 5:29 pm
Re: E-ink BMP file not showing the red color
Hmmm. In that case. I use GxEPD2 the libary. It is based on your libary.
https://github.com/ZinggJM/GxEPD2
https://github.com/ZinggJM/GxEPD2
Please be positive and constructive with your questions and comments.