Skip to content

compilation error for board lolin32 + oled #137

@twanek

Description

@twanek

hi!

i try to use this board: https://www.aliexpress.com/item/Wemos-18650-Battery-shield-V3-RaspberryPi-Arduino-Lolin-ESP32-OLED-wemos-for-Arduino-ESP32S-WiFi-Modules/32807898232.html

with this lib, but i've got a compile error:

In file included from C:\ARDUINO\libraries\esp8266-oled-ssd1306/SSD1306Wire.h:31:0,

                 from C:\ARDUINO\libraries\esp8266-oled-ssd1306/SSD1306.h:30,

                 from C:\Users\wanek\AppData\Local\Temp\arduino_modified_sketch_891573\SSD1306SimpleDemo.ino:29:

C:\ARDUINO\libraries\esp8266-oled-ssd1306/OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()':

C:\ARDUINO\libraries\esp8266-oled-ssd1306/OLEDDisplay.h:253:29: error: no return statement in function returning non-void [-Werror=return-type]

     virtual bool connect() {};

                             ^

In file included from C:\ARDUINO\libraries\esp8266-oled-ssd1306/SSD1306.h:30:0,

                 from C:\Users\wanek\AppData\Local\Temp\arduino_modified_sketch_891573\SSD1306SimpleDemo.ino:29:

C:\ARDUINO\libraries\esp8266-oled-ssd1306/SSD1306Wire.h: In member function 'virtual void SSD1306Wire::display()':

C:\ARDUINO\libraries\esp8266-oled-ssd1306/SSD1306Wire.h:83:23: warning: comparison is always false due to limited range of data type [-Wtype-limits]

         if (minBoundY == ~0) return;

                       ^

cc1plus.exe: some warnings being treated as errors

Using library Wire at version 1.0 in folder: C:\ARDUINO\hardware\espressif\esp32\libraries\Wire 
Using library esp8266-oled-ssd1306 at version 3.2.7 in folder: C:\ARDUINO\libraries\esp8266-oled-ssd1306 
exit status 1
Error compiling for board WEMOS LOLIN32.

the only thing i modified in the SSD1306SimpleDemo example is at line 61 replaced D3, D5 with 5, 4 as per seller instruction.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions