Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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