Closed 2bndy5 closed 3 years ago
yeah, there is no explicit way to detect if the board is using this fork vs arduino one. Maybe we could add macro ARDUINO_SAMD_ADAFRUIT
to the compile flag similar to what we did with nrf52. @ladyada do you have any better name or suggestion.
woops sorry didnt see that you want all adafruit boards @2bdny want to add a global #define to our boards.txt?
Yes please. That would be most convenient and future proof.
@2bndy5 ok please try it out and make a PR!
I need a way to detect if the SAMD core being used is from this fork (not the arduino/ArduinoCore-samd repo). The reason for this demand is because our library makes use of the
Serial.printf()
in this fork, however it is not present in the arduino/ArduinoUnified-API repo (as used by the arduino/ArduinoCore-samd repo).Initially by using
I thought that I could single out any board supported by this fork, but I'm now getting a user report that would indicate that it also gets triggered for the Arduino MKR WIFI 1010 board (which doesn't have
Serial.printf()
). I know I could just do adefined (ADAFRUIT_FEATHER_M0)
but I don't want to do this for the 30 or so boards this fork supports. Is there a better way?