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
'D3' was not declared in this scope #2
Comments
If you are using a wemos d1 mini or a nodemcu board then you need to select
them from the boards drop down.
If you are using some other esp8266, the pins are labeled differently, you
can look them up here
https://escapequotes.net/wp-content/uploads/2016/02/d1-mini-esp8266-board-sh_fixled.jpg
So for example D3 is connected to io0, so you can update it in the sketch
to be 0 instead of D3
…On Sat, 19 May 2018 19:50 Javier Lorenzo Pouso, ***@***.***> wrote:
Arduino:1.8.5 (Windows 10), Tarjeta:"Generic ESP8266 Module, 80 MHz, ck,
26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None,
Only Sketch, 115200"
SimpleCrypto:49: error: 'D3' was not declared in this scope
#define SDA_PIN D3
^
C:\Users\javi\Desktop\simple-arduino-crypto-display-master\SimpleCrypto\SimpleCrypto.ino:72:22:
note: in expansion of macro 'SDA_PIN'
SH1106 display(0x3c, SDA_PIN, SCL_PIN);
^
SimpleCrypto:48: error: 'D5' was not declared in this scope
#define SCL_PIN D5
^
C:\Users\javi\Desktop\simple-arduino-crypto-display-master\SimpleCrypto\SimpleCrypto.ino:72:31:
note: in expansion of macro 'SCL_PIN'
SH1106 display(0x3c, SDA_PIN, SCL_PIN);
^
exit status 1
'D3' was not declared in this scope
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfXwtik0YC4zt5xzFQmJvvLirXdhzLYks5t0GlcgaJpZM4UF0FC>
.
|
Hi, I had this problem and I fixed it but now I have another issue: Arduino: 1.8.15 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200" C:\Users\evil_\Documents\Arduino\libraries\CoinMarketCapApi\src\CoinMarketCapApi.cpp:70:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see https://arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6 70 | DynamicJsonBuffer jsonBuffer;
C:\Users\evil_\Documents\Arduino\libraries\CoinMarketCapApi\src\CoinMarketCapApi.cpp: In member function 'CMCTickerResponse CoinMarketCapApi::GetTickerInfo(String, String)': C:\Users\evil_\Documents\Arduino\libraries\CoinMarketCapApi\src\CoinMarketCapApi.cpp:70:21: error: 'jsonBuffer' was not declared in this scope; did you mean 'JsonBuffer'? 70 | DynamicJsonBuffer jsonBuffer;
C:\Users\evil_\Documents\Arduino\libraries\CoinMarketCapApi\src\CoinMarketCapApi.cpp:72:12: error: 'ArduinoJson::JsonArray' {aka 'class ArduinoJson6180_91::ArrayRef'} has no member named 'success' 72 | if (root.success()) {
exit status 1 Error compiling for board Generic ESP8266 Module. This report would have more information with |
Arduino:1.8.5 (Windows 10), Tarjeta:"Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
SimpleCrypto:49: error: 'D3' was not declared in this scope
#define SDA_PIN D3
C:\Users\javi\Desktop\simple-arduino-crypto-display-master\SimpleCrypto\SimpleCrypto.ino:72:22: note: in expansion of macro 'SDA_PIN'
SH1106 display(0x3c, SDA_PIN, SCL_PIN);
SimpleCrypto:48: error: 'D5' was not declared in this scope
#define SCL_PIN D5
C:\Users\javi\Desktop\simple-arduino-crypto-display-master\SimpleCrypto\SimpleCrypto.ino:72:31: note: in expansion of macro 'SCL_PIN'
SH1106 display(0x3c, SDA_PIN, SCL_PIN);
exit status 1
'D3' was not declared in this scope
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
The text was updated successfully, but these errors were encountered: