I'm using the ATSAMD21G18A with a custom board and need to use pin 0,1 (porta11, porta10). I would like to remove in variant.h PIN_SERIAL1_RX, and PIN_SERIAL1_TX
When commenting out these two I'll get several errors. How can I safely remove them?
I would like to remove in variant.h PIN_SERIAL1_RX, and PIN_SERIAL1_TX
Why? If you don't do the Serial1.begin(), you'll still be free to use those pins for whatever you want...
Yeah, it looks like there's about 2k of UART code that will get included in the sketch whether or not you use it, but I doubt that that will be relevant on a "large" chip like the SAMD.
It looks like editing variant.cpp instead of variant.h will get rid of the code...