Macro for distigushing XIAO akin to ARDUINO_ARCH_AVR

I have an application that compiles/runs for Arduino, Trinket M0, and XIAO. I use the define:
SEEED_XIAO_M0
to detect the XIAO. If you turn on the detail output from the compiler and look at the gcc commands you can see the various defines (e.g. -D SEEED_XIAO_M0) used for the different platforms.

2 Likes