Closed jechiasson closed 2 years ago
Could you try to add SPI
to the lib_deps
?
That fixed the compile error, thank you. Why isn't it pulled in with the board? SPI is required to communicate to the wifinina.
You can add #include <SPI.h>
to your project source file and remove SPI
from lib_deps
. It will work too.
I was not able to compile code referencing SPI.h with this platformio.ini:
[env:nano_33_iot] platform = atmelsam board = nano_33_iot framework = arduino lib_deps = ; name-based (built-in library in framework) ; wifi nina arduino-libraries/WiFiNINA@^1.8.13
Changing board to mzeroUSB corrected the errors. Is there a better way to correct this?