Cubecell GPS 6502

Hi
I’m trying to flash the Arduino sketch for Cubecell 6502 oled GPSinfo.
Unfortunately, I always get an error message.

C:\Users\Andre\AppData\Local\Temp.arduinoIDE-unsaved20221014-8004-q37cq1.g17pc\oledDisplayGPSInfo\oledDisplayGPSInfo.ino:8:71: error: no matching function for call to ‘SSD1306Wire::SSD1306Wire(int, int, int, DISPLAY_GEOMETRY, PinNames)’
SSD1306Wire display(0x3c, 500000, I2C_NUM_0, GEOMETRY_128_64, GPIO10 ); // addr , freq , i2c group , resolution , rst
^
In file included from C:\Users\Andre\AppData\Local\Temp.arduinoIDE-unsaved20221014-8004-q37cq1.g17pc\oledDisplayGPSInfo\oledDisplayGPSInfo.ino:6:0:
C:\Users\Andre\AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1.5.0\libraries\DISPLAY\src/HT_SSD1306Wire.h:17:5: note: candidate: SSD1306Wire::SSD1306Wire(uint8_t, uint32_t, int, int, DISPLAY_GEOMETRY, int8_t)
SSD1306Wire(uint8_t _address, uint32_t _freq, int sda,int scl, DISPLAY_GEOMETRY g = GEOMETRY_128_64,int8_t _rst=-1) {
^
C:\Users\Andre\AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1.5.0\libraries\DISPLAY\src/HT_SSD1306Wire.h:17:5: note: no known conversion for argument 5 from 'PinNames ’ to ‘DISPLAY_GEOMETRY’
C:\Users\Andre\AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1.5.0\libraries\DISPLAY\src/HT_SSD1306Wire.h:8:7: note: candidate: SSD1306Wire::SSD1306Wire(const SSD1306Wire& )
class SSD1306Wire : public ScreenDisplay {
^
C:\Users\Andre\AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1.5.0\libraries\DISPLAY\src/HT_SSD1306Wire.h:8:7: note: candidate expects 1 argument, 5 provided

exit status 1

Compilation error: no matching function for call to ‘SSD1306Wire::SSD1306Wire(int, int, int, DISPLAY_GEOMETRY, PinNames)’

I hope someone can help me

Regards

Andre

Do you maybe have the wrong board selected?

I am having the same issue.

@rieders, @lmenten

Did yall get this figured out?

You need to change the line

SSD1306Wire  display(0x3c, 500000, I2C_NUM_0, GEOMETRY_128_64, GPIO10 ); // 

to

SSD1306Wire  display(0x3c, 500000, SDA,SCL, GEOMETRY_128_64, GPIO10 );

The OLED display is set up to communicate via I2C protocol and the input of I2C_NUM_0 is throwing the error, it needs to be changed to the SDA and SCL pins via SDA,SCL,

Its too bad the documentation and apparent support from Heltec is basically nonexistent.

I just got this board and am still playing with it to figure it out as it has everything I want via LoRa and GPS

I hope this helps or helps someone else with this error

THANK YOU! They seem to make a decent product but also seem to lack the ability to comment their code…
//G12 GPS uses GPS_Air530Z
// Use GPS_Air530 for board version before 1.1