reaper7 wrote:swap (or new swapint) is placed inside Adafruit_GFX library (file Adafruit_GFX.h)
download this lib and change:
fromCode: Select all#define swap(a, b) { int16_t t = a; a = b; b = t; }
toCode: Select all#define swapint(a, b) { int16_t t = a; a = b; b = t; }
Thyanks very much again.
In my GFX_Library swap was defined as adagfxswap.
So I changed your swapint to adagfxswap. Now it is compiling without errors
Thanks