This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Version V1.8.3
This release:
- adds @mayopan's Example21_ModuleInfo (PR #106)
- corrects
configureMessage()
so it only affects the port the user passes in (PR #104) - fixes the fix for the SparkFun SAMD boards (thanks to @adamgarbo for spotting it (#107)!).
Instead of defining Serial as SerialUSB for all SAMD boards:
#if defined(ARDUINO_ARCH_SAMD)
#define Serial SerialUSB
#endif
We now only do it for SparkFun boards (with USB_VID 0x1B4F) and exclude the SAMD51 Thing Plus (which does use Serial):
// Define Serial for SparkFun SAMD based boards.
// Boards like the RedBoard Turbo use SerialUSB (not Serial).
// But other boards like the SAMD51 Thing Plus use Serial (not SerialUSB).
// The next nine lines let the code compile cleanly on as many SAMD boards as possible.
#if defined(ARDUINO_ARCH_SAMD) // Is this a SAMD board?
#if defined(USB_VID) // Is the USB Vendor ID defined?
#if (USB_VID == 0x1B4F) // Is this a SparkFun board?
#if !defined(ARDUINO_SAMD51_THING_PLUS) // If it is not a SAMD51 Thing Plus
#define Serial SerialUSB // Define Serial as SerialUSB
#endif
#endif
#endif
#endif