Use textWrite's delay on smaller sizes with faster processors

This commit is contained in:
PaulStoffregen 2013-12-19 12:08:05 -08:00
parent a3a8f4c9d4
commit a26f29fca9
1 changed files with 6 additions and 0 deletions

View File

@ -361,7 +361,13 @@ void Adafruit_RA8875::textWrite(char* buffer, uint16_t len)
for (uint16_t i=0;i<len;i++)
{
writeData(buffer[i]);
#if defined(__AVR__)
if (_textScale > 1) delay(1);
#elif defined(__arm__)
// This delay is needed with textEnlarge(1) because
// Teensy 3.X is much faster than Arduino Uno
if (_textScale > 0) delay(1);
#endif
}
}