Adafruit-GFX-Library
Adafruit-GFX-Library copied to clipboard
drawCircleHelper not working, not drawing pixels
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.
There is another report about the lack of startWrite and endWrite calls in drawCircleHelper at https://github.com/adafruit/Adafruit-GFX-Library/issues/265.