Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

drawCircleHelper not working, not drawing pixels

Open SaKiEQ opened this issue 2 years ago • 1 comments

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.

SaKiEQ avatar Oct 19 '23 17:10 SaKiEQ

There is another report about the lack of startWrite and endWrite calls in drawCircleHelper at https://github.com/adafruit/Adafruit-GFX-Library/issues/265.

per1234 avatar Apr 16 '24 11:04 per1234