Skip to content
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

drawCircleHelper not working, not drawing pixels #437

Open
SaKiEQ opened this issue Oct 19, 2023 · 1 comment
Open

drawCircleHelper not working, not drawing pixels #437

SaKiEQ opened this issue Oct 19, 2023 · 1 comment

Comments

@SaKiEQ
Copy link

SaKiEQ commented Oct 19, 2023

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.

@per1234
Copy link

per1234 commented Apr 16, 2024

There is another report about the lack of startWrite and endWrite calls in drawCircleHelper at #265.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants