Weird colors when using screen capture for HX8357D #2944
CNC-Designs
started this conversation in
General
Replies: 1 comment 3 replies
-
Run the TFT_ReadWrite_Test "Test and diagnostics" sketch and check the values reported in the serial window are correct. Post the example output. This test does a walking 1 test and helps identify the read format. The problem is that displays do not always return the expected colour format. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using an Adafruit 480x320 display that has the HX8357D driver in it. It's an STM32 using 8bit parallel mode. When I try to use the screen capture through the processing sketch, I get something close, but not quite the correct screen. I've tried all of the different options around line 409 and none of them make it display quite right.
I've tried each of these
//stroke( (rgb[0] & 0x1F)<<3, (rgb[0] & 0xE0)>>3 | (rgb[1] & 0x07)<<5, (rgb[1] & 0xF8));
//stroke( (rgb[1] & 0x1F)<<3, (rgb[1] & 0xE0)>>3 | (rgb[0] & 0x07)<<5, (rgb[0] & 0xF8));
stroke( (rgb[0] & 0xF8), (rgb[1] & 0xE0)>>3 | (rgb[0] & 0x07)<<5, (rgb[1] & 0x1F)<<3);
//stroke( (rgb[1] & 0xF8), (rgb[0] & 0xE0)>>3 | (rgb[1] & 0x07)<<5, (rgb[0] & 0x1F)<<3);
Here's a screenshot taken with the default line selected. Changing to different ones alters the colors, but none of them are correct.

Here's an actual picture of what the screen looks like.

Beta Was this translation helpful? Give feedback.
All reactions