Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example program for GPS has an error #14

Open
SamGJay opened this issue May 15, 2022 · 1 comment
Open

Example program for GPS has an error #14

SamGJay opened this issue May 15, 2022 · 1 comment

Comments

@SamGJay
Copy link

SamGJay commented May 15, 2022

I think that line 8 for the example program "oledDisplayGPSInfo" for HTCC-AB02S CubeCell Lora-GPS board should be updated.

Currently it is:

SSD1306Wire  display(0x3c, 500000, I2C_NUM_0, GEOMETRY_128_64, GPIO10 ); // addr , freq , i2c group , resolution , rst

But this results in error from Arduino IDE 1.8.19: "no matching function for call to 'SSD1306Wire::SSD1306Wire(int, int, int, DISPLAY_GEOMETRY, PinNames)'

The program seems to work when this I2C_NUM_0 updated to SDA, SCL as below:

SSD1306Wire  display(0x3c, 500000, SDA, SCL, GEOMETRY_128_64, GPIO10 ); // addr , freq , i2c group , resolution , rst
@alexandredubois
Copy link

I noticed the same problem with my cubecell AB02S board and i can confirm the solution provided by @SamGJay works very well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants