by nanowaver » Sun Jan 03, 2021 11:16 pm
Steve
Attached is a photo of the corrected test card being displayed on a 2.2 inch TFT display where each pixel in the test card is actually displayed as a block of 5 x 5 TFT pixels. I used this for checking the hex data.
My corrections are noted in the partial Arduino sketch listing below. I tried to attach the complete listing but it won't allow it.
Major corrections are starred but I also made pixel 64 in every line = green (on my 8 colour scale) for consistency as some were black and some were green. Maybe pixel 64 on each vertical line was intended to be black?
//vertical line 3 (0C0) ******* row 3 corrected ******
int sig3[] = {0x00, 0x00, 0x00, 0x80, 0x80, 0x6E, 0x00, 0x00, 0x00, 0x05, 0x7B, 0x80, 0x80, 0x7B, 0x05, 0x00,
0x00, 0x00, 0x6E, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x7F, 0x66, 0x3C, 0x1A, 0x08, 0x01,
0x00, 0x00, 0x01, 0x08, 0x1A, 0x3C, 0x66, 0x7F, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x6E, 0x00, 0x6E, 0x80, 0x80, 0x80, 0x6E, 0x00, 0x6E, 0x80, 0x80, 0x80};
//vertical line 9 (240) **** corrected row 2 *****
int sig9[] = {0x00, 0x00, 0x00, 0x80, 0x80, 0x6E, 0x00, 0x00, 0x40, 0x80, 0x80, 0x40, 0x00, 0x00, 0x6E, 0x80,
0x80, 0x7E, 0x17, 0x4A, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xA8, 0x28, 0x00, 0xD0,
0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0x4A, 0x17,
0x7E, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x6E, 0x00, 0x00, 0x6E, 0x80, 0x80, 0x80, 0x80};
//vertical line 22 (580) ***** row 3 corrected ***
int sig22[] = {0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x7E, 0x17, 0x4A, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xD7, 0x00, 0xD7,
0xFF, 0xFF, 0xD7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD7, 0xFF, 0x4A, 0x17,
0x7E, 0x80, 0x80, 0x80, 0x6E, 0x00, 0x13, 0x13, 0x80, 0x80, 0x6E, 0x00, 0x6E, 0x80, 0x80, 0x80};
The 8 level false colour scale I used is this
// 8 colour scale (black, blue, red, magenta, green, cyan, yellow, white)
uint16_t c[] = {0x0000, 0x001F, 0xF800, 0xF81F, 0x07E0, 0x7FF, 0xFFE0, 0xFFFF};
Hope this is useful
Barry
- Attachments
-
- IMG_3504.JPG (107.45 KiB) Viewed 5490 times