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

'D4' was not declared in this scope #4

Open
Lup1n-3 opened this issue Jan 6, 2023 · 1 comment
Open

'D4' was not declared in this scope #4

Lup1n-3 opened this issue Jan 6, 2023 · 1 comment

Comments

@Lup1n-3
Copy link

Lup1n-3 commented Jan 6, 2023

Hi, I'm having a problem compiling the code.

ESP8266-Wardriving:24:19: error: 'D4' was not declared in this scope
24 | SoftwareSerial ss(D4, D3); // RX, TX
| ^~
ESP8266-Wardriving:24:23: error: 'D3' was not declared in this scope
24 | SoftwareSerial ss(D4, D3); // RX, TX
| ^~
C:\Users\win 1o\Desktop\ESP8266-Wardriving-master\src\ESP8266-Wardriving\ESP8266-Wardriving.ino: In function 'void setup()':
ESP8266-Wardriving:10:20: error: 'D8' was not declared in this scope; did you mean 's8'?
10 | #define SD_CS D8
| ^~
C:\Users\win 1o\Desktop\ESP8266-Wardriving-master\src\ESP8266-Wardriving\ESP8266-Wardriving.ino:40:17: note: in expansion of macro 'SD_CS'
40 | if (!SD.begin(SD_CS)) {
| ^~~~~
Se encontraron varias bibliotecas para "SD.h"
Usado: C:\Users\win 1o\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\SD
No usado: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
'D4' was not declared in this scope`

@chopper-2656
Copy link

chopper-2656 commented Mar 4, 2023

Make sure you have the following included. I also found that I had to revert back to an older ESP8266 firmware to resolve some issuess.

#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
#include <ESP8266WiFi.h>
#include <SPI.h>
#include <SD.h>
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
#include <TimeLib.h>

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