You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
drawCircleHelper does not draw any pixels on screen.
Reason:
it seems since its a "helper", it does not initiate startWrite. When in use from drawRoundRect, the helper function is called
while the SPI is read to write, but not if called directly.
Adding startWrite() and endWrite() made the program hangs when other draw functions that rely
on the helper are called. Reason, the SPI port is already open and waits to be closed.
Solution:
Adding endWrite() before calling startWrite() within the function solved the issue.
Also maybe adding the macros for ESP8266 to yield() might be a good idea, as done in other functions within the library.
The text was updated successfully, but these errors were encountered:
ESP32
Adafruit_ILI9341
Problem:
drawCircleHelper does not draw any pixels on screen.
Reason:
it seems since its a "helper", it does not initiate startWrite. When in use from drawRoundRect, the helper function is called
while the SPI is read to write, but not if called directly.
Adding startWrite() and endWrite() made the program hangs when other draw functions that rely
on the helper are called. Reason, the SPI port is already open and waits to be closed.
Solution:
Adding endWrite() before calling startWrite() within the function solved the issue.
Also maybe adding the macros for ESP8266 to yield() might be a good idea, as done in other functions within the library.
The text was updated successfully, but these errors were encountered: