TftReadPixel(wX_Pixel As Word, wY_Pixel As Word), Word
wX_Pixel = X coordinate
wY_Pixel = Y coordinate
Return = 16b color in 565 RGB format
This procedure reads a pixel at position (wX_Pixel, wY_Pixel) from the TFT screen's graphic RAM and returns its color.
Note: Reading pixels from the TFT screen requires a significantly slower baud rate compared to writing pixels. If hardware SPI is used, you may need to adjust the SPI clock rate dynamically. For software SPI, bit-banging is employed, and it has been successfully tested at 150 MHz Fosc where the effective SPI clock rate is still valid.
Example:
TftReadPixel(20,30)
Created with the Personal Edition of HelpNDoc: Elevate Your Documentation Process with HelpNDoc's Advanced Features