for unknown reason, esp8266 wants delay() not yield() so it doesnt crash

This commit is contained in:
ladyada 2023-09-24 01:09:06 -04:00
parent 83a182d260
commit ff70355ed6

View File

@ -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);