Erro compilando para a placa ESP32 Dev Module - Alguem sabe o que posso fazer?

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Placa:"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"


In file included from C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp:17:0:
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp: In member function 'void IRTherm::sleep()':
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src/SparkFunMLX90614.h:30:13: error: 'PIN_WIRE_SCL' was not declared in this scope
#define SCL PIN_WIRE_SCL
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp:282:10: note: in expansion of macro 'SCL'
pinMode(SCL, OUTPUT);
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src/SparkFunMLX90614.h:27:13: error: 'PIN_WIRE_SDA' was not declared in this scope
#define SDA PIN_WIRE_SDA
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp:284:10: note: in expansion of macro 'SDA'
pinMode(SDA, INPUT);
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp: In member function 'void IRTherm::wake()':
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src/SparkFunMLX90614.h:30:13: error: 'PIN_WIRE_SCL' was not declared in this scope
#define SCL PIN_WIRE_SCL
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp:291:10: note: in expansion of macro 'SCL'
pinMode(SCL, INPUT); // SCL high
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src/SparkFunMLX90614.h:27:13: error: 'PIN_WIRE_SDA' was not declared in this scope
#define SDA PIN_WIRE_SDA
^
C:\Users\elian\OneDrive\Documentos\Arduino\libraries\SparkFun_Qwiic_IR_Thermometer_MLX90614_Arduino_Library\src\SparkFunMLX90614.cpp:292:10: note: in expansion of macro 'SDA'
pinMode(SDA, OUTPUT);

exit status 1
Erro compilando para a placa ESP32 Dev Module

Exibições: 35

Responder esta

Respostas a este tópico

Bom dia KC, (se não gosta que te chame pelas iniciais, avise),

o erro é nesta linha :   "error: 'PIN_WIRE_SCL' was not declared in this scope".

Anexe um ARQUIVO  com o seu sketch e se houve, também o link das bibliotecas necessárias .

RV mineirin

Tipicamente, por algum motivo, faltou incluir <Arduino.h> que define em <pins_arduino.h> os valores de SDA e SCL.

Se você estiver usando a versão original da biblioteca em https://github.com/sparkfun/SparkFun_MLX90614_Arduino_Library, não deveria acontecer esse problema.

Você modificou essa biblioteca?

RSS

© 2021   Criado por Marcelo Rodrigues.   Ativado por

Badges  |  Relatar um incidente  |  Termos de serviço