compiler error trying OLED library on swap(x, y)
Posted: Wed Dec 09, 2015 3:10 pm
Hello everybody.
I try to get an OLED SSD1306 running
I did download an example programm and the ESP_Adafruit_SSD1306 librarie.
I do receive an compiler error on swap function in the library part of the programm:
The library is using severall times the command: swap(x, y)
I don't know why this error occurs.
Is a part of the library missing?
Or is swap a kind of standard function?
How to solve this compiler error?
Thanks
Is swap a standard function?
I try to get an OLED SSD1306 running
I did download an example programm and the ESP_Adafruit_SSD1306 librarie.
I do receive an compiler error on swap function in the library part of the programm:
- :/Documenten/Arduino/libraries/ESP_Adafruit_SSD1306-master/ESP_Adafruit_SSD1306.cpp: In member function 'virtual void Adafruit_SSD1306::drawPixel(int16_t, int16_t, uint16_t)':
D:/Documenten/Arduino/libraries/ESP_Adafruit_SSD1306-master/ESP_Adafruit_SSD1306.cpp:109:14: error: 'swap' was not declared in this scope
swap(x, y);
The library is using severall times the command: swap(x, y)
I don't know why this error occurs.
Is a part of the library missing?
Or is swap a kind of standard function?
How to solve this compiler error?
Thanks
Is swap a standard function?