Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By canedje
#36136
reaper7 wrote:swap (or new swapint) is placed inside Adafruit_GFX library (file Adafruit_GFX.h)

download this lib and change:
from
Code: Select all#define swap(a, b) { int16_t t = a; a = b; b = t; }

to
Code: 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
Last edited by canedje on Thu Dec 10, 2015 1:46 am, edited 1 time in total.
User avatar
By reaper7
#36137 true!
I see latest commit for it on adafruit github
https://github.com/adafruit/Adafruit-GF ... de1daaedfa

Edit1:
tnx @canedje for info
now I fixed my version of lib for compatibility with Adafruit_GFX:
https://github.com/reaper7/ESP_SSD1306

Edit2:
seems like that latest Adafruit_SSD1306 works too without any changes inside lib (but with little tuning inside included examples)
User avatar
By canedje
#36179
reaper7 wrote:true!
I see latest commit for it on adafruit github
https://github.com/adafruit/Adafruit-GF ... de1daaedfa

Edit1:
tnx @canedje for info
now I fixed my version of lib for compatibility with Adafruit_GFX:
https://github.com/reaper7/ESP_SSD1306

Edit2:
seems like that latest Adafruit_SSD1306 works too without any changes inside lib (but with little tuning inside included examples)



It's working fine now.
The display is showing what i want.
I'm happy.

I do have an additional question.
What is the command to draw a line?