Merge pull request #2 from PaulStoffregen/master
Use textWrite's delay on smaller sizes with faster ARM processors
This commit is contained in:
commit
662b5b94ff
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@
|
|||
|
||||
#include <Adafruit_GFX.h>
|
||||
|
||||
#ifndef _ADAFRUIT_RA8875_H
|
||||
#define _ADAFRUIT_RA8875_H
|
||||
|
||||
// Sizes!
|
||||
enum RA8875sizes { RA8875_480x272, RA8875_800x480 };
|
||||
|
||||
|
|
@ -343,3 +346,5 @@ class Adafruit_RA8875 : public Adafruit_GFX {
|
|||
#define RA8875_INTC2_DMA 0x08
|
||||
#define RA8875_INTC2_TP 0x04
|
||||
#define RA8875_INTC2_BTE 0x02
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue