I am learning SSD1306 OLED from the post of Peter Simpson, and compiling encountered error, logs as below:
I searched the forums for the solution, I found this solution
The Arduino version I used is 1.8.19, I have uninstalled it and remove C:\Users\<Myuser>\AppData\Local\Arduino15 folder, now I have rolled back to Arduino IDE: Arduino 1.8.15, but compilig error is the same as before.
Thanks in advance
B4X:
In file included from C:\Users\<Myuser>\Documents\Arduino\libraries\esp8266-oled-ssd1306-master/SSD1306Wire.h:31,
from C:\Users\<Myuser>\Documents\Arduino\libraries\esp8266-oled-ssd1306-master/SSD1306.h:30,
from E:\b4r\Oled1366\Objects\src\b4r_main.cpp:12:
C:\Users\<Myuser>\Documents\Arduino\libraries\esp8266-oled-ssd1306-master/OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()':
C:\Users\<Myuser>\Documents\Arduino\libraries\esp8266-oled-ssd1306-master/OLEDDisplay.h:253:29: error: no return statement in function returning non-void [-Werror=return-type]
253 | virtual bool connect() {};
| ^
cc1plus.exe: some warnings being treated as errors
exit status 1
DEBUG StatusLogger Stopping LoggerContext[name=1e6f5c3,
I searched the forums for the solution, I found this solution
The Arduino version I used is 1.8.19, I have uninstalled it and remove C:\Users\<Myuser>\AppData\Local\Arduino15 folder, now I have rolled back to Arduino IDE: Arduino 1.8.15, but compilig error is the same as before.
Thanks in advance
Last edited: