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

'D3' was not declared in this scope #2

Open
j-lorenzo opened this issue May 19, 2018 · 2 comments
Open

'D3' was not declared in this scope #2

j-lorenzo opened this issue May 19, 2018 · 2 comments

Comments

@j-lorenzo
Copy link

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.

@witnessmenow
Copy link
Owner

witnessmenow commented May 19, 2018 via email

@ghost
Copy link

ghost commented Jul 2, 2021

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;

  |                     ^~~~~~~~~~

  |                     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
"Show verbose output during compilation"
option enabled in File -> Preferences.

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