Skip to content

Commit 3ccd009

Browse files
Merge pull request #201 from adafruit/pb-tft8
Add 8-bit parallel interface support
2 parents b920674 + c6dba9b commit 3ccd009

File tree

5 files changed

+1903
-686
lines changed

5 files changed

+1903
-686
lines changed

Adafruit_GFX.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ WIDTH(w), HEIGHT(h)
103103
/**************************************************************************/
104104
void Adafruit_GFX::writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
105105
uint16_t color) {
106+
#if defined(ESP8266)
107+
yield();
108+
#endif
106109
int16_t steep = abs(y1 - y0) > abs(x1 - x0);
107110
if (steep) {
108111
_swap_int16_t(x0, y0);
@@ -317,6 +320,9 @@ void Adafruit_GFX::drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
317320
/**************************************************************************/
318321
void Adafruit_GFX::drawCircle(int16_t x0, int16_t y0, int16_t r,
319322
uint16_t color) {
323+
#if defined(ESP8266)
324+
yield();
325+
#endif
320326
int16_t f = 1 - r;
321327
int16_t ddF_x = 1;
322328
int16_t ddF_y = -2 * r;

0 commit comments

Comments
 (0)