Certainly! To make your code compatible with both the regular Xiao and Xiao RP2040, you can utilize the ARDUINO_ARCH_RP2040 pre-defined macro.
By using conditional compilation directives, you can differentiate between the two platforms and initialize the appropriate serial port accordingly. For example, use Serial for the regular Xiao and Serial1 for the Xiao RP2040. This approach ensures that your code works seamlessly on both versions, allowing you to leverage the unique features of each board without the need for extensive code modifications.