Hi. i am using the Adafruit TFT Display, and i am trying make the display tell me, which color a certain pixel is.
What i wanna do, is to make the pixel at 3,5 green, then ask the arduino what color the pixel at 3,5 is. Where it has to output green. I just don't know how to write a function to make it look at the color. Is this even possible?
Thanks in advance.
The first thing you'll have to do is figure out the chipset used on that display.
I'd go ahead and use the Adafruit's call ... "readId" if my memory serves me right.
Then look inside the library and see if that card supports read pixel. Some do, but not all.
I'm by no means an expert but have been poking around with a similar display. This is an ST7735 based LCD and the Adafruit_ST7735 library seems to provide no means of reading pixels directly.
However, pixels are written at a low level using the ST7735_RAMWR controller command, and a teasing ST7735_RAMRD command is also defined in the library header. So it could be that the controller itself does support reading - it just needs some appropriate library functions writing....