-
Notifications
You must be signed in to change notification settings - Fork 271
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
SPI.h Not Found when the sensor I'm using doesn't even use SPI? Apple Silicon on PlatformIO 6.1.16/VSCode using adafruit/Adafruit BusIO@^1.14.1 #133
Comments
Related to #127, but in this case SPI instead of Serial. Not aware of a possible work around for platformio. Is there anyway to delete specific files from a library? Like deleting |
I got it to compile on the board I was having issues with, but not sure of an official way to fix it since I'm not even using SPI. For anyone else having problems, I created this PIO board myself and the docs did not mention it having SPI so I left it out of the
For anyone else running into this problem, odds are you are using a board that doesn't have any of the SPI pins defined in it's variants file. If you're using them then obviously you should add the correct pins to the VDBX Flip C3~/.platformio/platforms/espressif32/boards/flip_c3.json
~/.platformio/packages/framework-arduinoespressif32/variants/flip_c3/pins_arduino.h
|
I'm using a FLIP C3 board, which does not have SPI pins (only I2C, UART, digital, analog). I've tried declaring an SPI pinout in the pins_arduino.h file just to see if it fixes the error, but that didn't work. Suggestions online say to include SPI.h in the beginning of my script, but the same error occurs. It also continues happening when setting it in
lib_deps
.What's the official way of resolving this?
platformio.ini
main.cpp
Error:
There's claims that the problem is caused by how PIO scans the code, but the workaround does not help if the board I'm using doesn't have SPI.
https://community.platformio.org/t/adafruit-busio-adafruit-spidevice-h17-fatal-error-spi-h-no-such-file-or-directory/14864/10
What's the official way of resolving this?
The text was updated successfully, but these errors were encountered: