[SIM800L] I want to release HardwareSerial2 for other high frequency sensor. Is there any why can switch physical connection between GPIO?

  • Hello everyone
    I want to use the SIM800L module for IoT sensor.

    There have 2 HardwareSerial on M5Stack’s board,
    but, I heard about HardwareSerial0 has been used for USB(typeC).
    So,I want to switch GPIO16/17(U2) to GPIO26/36(SoftwareSerial).

    I heard about I don't need to change physical connection.
    The esp32 can change GPIO position, only use software.
    Is that possible?
    How can I do that? Change the M5Stack.h?