Destroy standard Serial definitions

Hello Community,

varints.cpp defines two Serials

"Serial" ist reserved for EDBG, but, i have no EDBG chip on my custom board, so i will use Sercom5 for another things.

How can i "destroy" this serial definion whithout to comment out this line? (because it is only up to next core update...)

Best regards,
Eugen

Hi Eugen,

If you're using your own custom board, then it's possible to create your own entry in the "Boards Manager" in the Arduino IDE. This allows you select your own board from the drop-down list, just like any other Arduino.

As this process also creates a copy of the Zero's core files in a new directory, so it's possible to modify these files, including the "variants.cpp" file and use the "Boards Manager" to provide your own custom updates to users. Thereafter updates to the Arduino Zero core won't affect your board or overwrite your changes.

This is detailed on the forum page here: Adding custom (Zero based) boards to the Arduino IDE - Arduino Zero - Arduino Forum.