Closed robsonos closed 2 years ago
Keep in mind that this library is not only for nRF52 MCU but as well supports ESP32, ESP8266 and RP2040.
Missing Adafruit_TinyUSB.h
has to do with the Adafruit nRF52 BSP, out of some reason I do not get, they took Serial
class out of the BSP. I do not want to add it as dependency, because it is only for nRF52 and will cause problems with other MCU platforms the library is supporting (currently ESP32 and RP2040)
Missing SPI.h
is intentional to keep the library compatible with future Arduino architectures. E.g. in RP2040 BSP SPI class is named different (MbedSPI).
I am not sure why you would have the library in lib_deps
if you do not use it. But I cannot implement your proposal without breaking other platforms.
Hi Bernd,
If I add
SX126x-Arduino
to thelib_deps
inplatformio.ini
, without including<SX126x-Arduino.h>
tomain.cpp,
the compiler complains about missing theSPI.h
and theAdafruit_TinyUSB.h
dependencies:This can be easily fixed by adding those dependencies to
library.json
:The motivation for this change is that we may have an
#ifdef
wrapping#include <SX126x-Arduino.h>
, but we may still wan to keepSX126x-Arduino
inlib_deps
. I am happy to create a PR if you agree with those changes.Cheers, Robson.