mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
for unknown reason, esp8266 wants delay() not yield() so it doesnt crash
This commit is contained in:
parent
83a182d260
commit
ff70355ed6
@ -1348,7 +1348,7 @@ void Adafruit_SPITFT::writeColor(uint16_t color, uint32_t len) {
|
||||
if (pixelsThisPass > 50000)
|
||||
pixelsThisPass = 50000;
|
||||
len -= pixelsThisPass;
|
||||
yield(); // Periodic yield() on long fills
|
||||
delay(1); // Periodic delay on long fills
|
||||
while (pixelsThisPass--) {
|
||||
hwspi._spi->write(hi);
|
||||
hwspi._spi->write(lo);
|
||||
|
Loading…
Reference in New Issue
Block a user