I am using ESP_SSD1306 (39679d5) and adafruit/Adafruit-GFX-Library@93dde8b
When trying to compile any of the examples I get the following error inside ArduinoIDE 1.6.7:
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp: In member function 'virtual void ESP_SSD1306::drawPixel(int16_t, int16_t, uint16_t)':
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp:130:14: error: 'swap' was not declared in this scope
swap(x, y);
^
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp: In member function 'virtual void ESP_SSD1306::drawFastHLine(int16_t, int16_t, int16_t, uint16_t)':
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp:594:16: error: 'swap' was not declared in this scope
swap(x, y);
^
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp: In member function 'virtual void ESP_SSD1306::drawFastVLine(int16_t, int16_t, int16_t, uint16_t)':
/home/******/Arduino/libraries/ESP_SSD1306/ESP_SSD1306.cpp:662:16: error: 'swap' was not declared in this scope
swap(x, y);
^
Thanks again. I just compiled with the new GFX library without modification and your merged code and no errors were reported. I couldn't try it with the phisical hardware but I assume it will work fine.
I am using ESP_SSD1306 (39679d5) and adafruit/Adafruit-GFX-Library@93dde8b When trying to compile any of the examples I get the following error inside ArduinoIDE 1.6.7: