Skip to content

Commit

Permalink
for unknown reason, esp8266 wants delay() not yield() so it doesnt crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Sep 24, 2023
1 parent 83a182d commit ff70355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff70355

Please sign in to comment.