You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unable to build the firmware with Platformio due to a missing dependency for the BH1750 Light Sensor.
Arduino board
Adafruit QT Py ESP32-S2
To Reproduce
Steps to reproduce the behavior:
Clone the Adafruit Wippersnapper Arduino Repository
Open the project in VS Code with the Platformio extension installed
Wait for the Platformio project configuration to complete
Select the env:adafruit_qtpy_esp32s2
Click the Build task button
The compilation fails, due to a missing dependency for the BH1750 light sensor
The error that is causing the compilation to fail
#include <hp_BH1750.h> //include the library for the BH1750 sensor
^~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/adafruit_qtpy_esp32s2/src/Wippersnapper.cpp.o] Error 1
In file included from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/tusb_option.h:193,
from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/Adafruit_TinyUSB.h:35,
from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit NeoPixel/Adafruit_NeoPixel.h:48,
from src/components/statusLED/Wippersnapper_StatusLED.h:19,
from src/Wippersnapper.h:35,
from src/components/analogIO/Wippersnapper_AnalogIO.h:19,
from src/components/analogIO/Wippersnapper_AnalogIO.cpp:17:
.pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/common/tusb_mcu.h:362:4: warning: #warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8" [-Wcpp]
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
^~~~~~~
In file included from src/components/i2c/WipperSnapper_I2C.h:25,
from src/Wippersnapper.h:40,
from src/components/analogIO/Wippersnapper_AnalogIO.h:19,
from src/components/analogIO/Wippersnapper_AnalogIO.cpp:17:
src/components/i2c/drivers/WipperSnapper_I2C_Driver_BH1750.h:5:10: fatal error: hp_BH1750.h: No such file or directory
Expected behavior
The project should build, and compilation should succeed
Which components are connected to your device
None
Screenshots
N/A
Desktop (please complete the following information):
OS: Raspberry Pi OS (Remote Development from VS Code)
Editor: VS Code on Windows
Additional context
It looks like I forgot to add the dependency to the platformio.ini file for the BH1750 sensor I added earlier this week.
I was able to resolve this issue by adding the library to the end of the list of lib_deps common for all envs in the platformio.ini
I apologize I missed testing the platformio build, I was doing all my testing with the Arduino IDE. I'll open a PR that adds the dependency to the platformio.ini file.
The text was updated successfully, but these errors were encountered:
Describe the bug
Unable to build the firmware with Platformio due to a missing dependency for the BH1750 Light Sensor.
Arduino board
Adafruit QT Py ESP32-S2
To Reproduce
Steps to reproduce the behavior:
The error that is causing the compilation to fail
#include <hp_BH1750.h> //include the library for the BH1750 sensor
^~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/adafruit_qtpy_esp32s2/src/Wippersnapper.cpp.o] Error 1
In file included from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/tusb_option.h:193,
from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/Adafruit_TinyUSB.h:35,
from .pio/libdeps/adafruit_qtpy_esp32s2/Adafruit NeoPixel/Adafruit_NeoPixel.h:48,
from src/components/statusLED/Wippersnapper_StatusLED.h:19,
from src/Wippersnapper.h:35,
from src/components/analogIO/Wippersnapper_AnalogIO.h:19,
from src/components/analogIO/Wippersnapper_AnalogIO.cpp:17:
.pio/libdeps/adafruit_qtpy_esp32s2/Adafruit TinyUSB Library/src/common/tusb_mcu.h:362:4: warning: #warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8" [-Wcpp]
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
^~~~~~~
In file included from src/components/i2c/WipperSnapper_I2C.h:25,
from src/Wippersnapper.h:40,
from src/components/analogIO/Wippersnapper_AnalogIO.h:19,
from src/components/analogIO/Wippersnapper_AnalogIO.cpp:17:
src/components/i2c/drivers/WipperSnapper_I2C_Driver_BH1750.h:5:10: fatal error: hp_BH1750.h: No such file or directory
Expected behavior
The project should build, and compilation should succeed
Which components are connected to your device
None
Screenshots
N/A
Desktop (please complete the following information):
Additional context
It looks like I forgot to add the dependency to the platformio.ini file for the BH1750 sensor I added earlier this week.
I was able to resolve this issue by adding the library to the end of the list of lib_deps common for all envs in the platformio.ini
I apologize I missed testing the platformio build, I was doing all my testing with the Arduino IDE. I'll open a PR that adds the dependency to the platformio.ini file.
The text was updated successfully, but these errors were encountered: