Ver Fonte

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

ladyada há 2 anos atrás
pai
commit
ff70355ed6
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Adafruit_SPITFT.cpp

+ 1 - 1
Adafruit_SPITFT.cpp

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