mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2026-10-26 22:10:52 +00:00
for unknown reason, esp8266 wants delay() not yield() so it doesnt crash
This commit is contained in:
1 parent
83a182d260
commit
ff70355ed6
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user