7 years, 5 months ago.

ReadPixel(x,y) returns the background color

Hello, I have 1058 lines of code, they are all working perfectly except this (LCD related):

lcd.DrawPixel(100,100,0xFFFF00FF); val = lcd.ReadPixel(100,100);

Instead of having val == 0xXXFF00FF, i have val == 0xXXFFFFFF. If i change the background to red with lcd.Clear(LCD_COLOR_RED); I have val == 0xXXFF0000. Why? do you have any mean to get the "real" color of the pixel?

Thanks for your time, Wololox

Question relating to:

The STM32F429 Discovery kit (STM32F429I-DISC1) allows users to easily develop applications with the STM32F429 high-performance MCUs with ARM®Cortex®-M4 core.
Be the first to answer this question.