-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdafruitGFX fillscreen()
, drawFastVLine()
, drawFastHLine()
working only partially (ESP32)
#2711
Comments
I've checked |
I have a pcb with the TFT board plugged on headers. |
Are you using the If you want to try another library, see |
Here is the code for the lines
|
Hooked up an ESP32 and can confirm your results! Easy fix by amending the |
fillscreen()
, drawFastVLine()
, drawFastHLine()
working only partially (ESP32)
Fixes #2711 The problem occurs with a code path for ESP32 which buffers up to 32 pixels at a time for transfer. However, the first call to 'writePixels' clears the buffer to black (0 - empty response data). If the fill colour is black no abnormal operation is observed, but any other colour and at most 32 pixels get filled with the requested colour. The benefit of these optimisations is minimal so the library is patched to simplify code path for all architectures.
Fixes #2711 The problem occurs with a code path for ESP32 which buffers up to 32 pixels at a time for transfer. However, the first call to 'writePixels' clears the buffer to black (0 - empty response data). If the fill colour is black no abnormal operation is observed, but any other colour and at most 32 pixels get filled with the requested colour. The benefit of these optimisations is minimal so the library is patched to simplify code path for all architectures.
Sample: ScreenTFT_ILI9340-ILI9341
In that sample, fillscreen only works with color 0, all other colors draw only a very short line of the color chosen.
This issue happens also with functions drawFastVLine(...) drawFastHLine(...)
Drawing rectangles is also affected.
Is it my setup ? Any body able to reproduce this behavior ?
The text was updated successfully, but these errors were encountered: