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

Problems with compiling #2

Open
beysdt opened this issue Jan 26, 2022 · 1 comment
Open

Problems with compiling #2

beysdt opened this issue Jan 26, 2022 · 1 comment

Comments

@beysdt
Copy link

beysdt commented Jan 26, 2022

Heyy Alex,

your stuff is really fun 🥇

As I tried to compile your code the following problems occured:

wardriving2:16:2: error: #error ("Incorrect screen height, fix Adafruit_SSD1306.h");
16 | #error("Incorrect screen height, fix Adafruit_SSD1306.h");
| ^~~~~
Mehrere Bibliotheken wurden für "TinyGPS++.h" gefunden
Benutzt: C:\Users\me\Documents\Arduino\libraries\TinyGPSPlus
Nicht benutzt: C:\Users\me\Documents\Arduino\libraries\TinyGPSpp
Mehrere Bibliotheken wurden für "SD.h" gefunden
Benutzt: C:\Users\me\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD
Nicht benutzt: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\SD
exit status 1
#error ("Incorrect screen height, fix Adafruit_SSD1306.h");

I can't get the point what the problem is. Would you please help me up?

Thanks
Ben

@Johnnybio1
Copy link

Hey Beysdt i think that i figured out the problem with the screen height

you need togo to the file in Benutzt: C:\Users\me\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h

open Adafruit_SSD1306.h in notepad or the editor of your choice
go down to line 28 delete the // and add it to the line right below

// ONE of the following three lines must be #defined:
#define SSD1306_128_64 ///< DEPRECTAED: old way to specify 128x64 screen
//#define SSD1306_128_32 ///< DEPRECATED: old way to specify 128x32 screen
//#define SSD1306_96_16 ///< DEPRECATED: old way to specify 96x16 screen
// This establishes the screen dimensions in old Adafruit_SSD1306 sketches
// (NEW CODE SHOULD IGNORE THIS, USE THE CONSTRUCTORS THAT ACCEPT WIDTH
// AND HEIGHT ARGUMENTS).

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