Xinyuan-LilyGO / LilyGo-T-Call-SIM800

https://www.aliexpress.com/item/33045221960.html
482 stars 239 forks source link

TTGO TCALL V1.3 define UART2 pins from Mongoose OS #124

Closed patrickryanwijaya closed 3 years ago

patrickryanwijaya commented 3 years ago

I am trying to use TTGo Tcall using Mongoose OS platform. I am also trying to use GPS module to receive location information. However, I am having a hard time receiving data because UART0 cannot be used sinceit is used by USB to communicate with the computer for flashing program to the board, UART1 also cannot be used because it is used by SIM800L module of the board, while UART2 which is pin 16 and 17 cannot be found in the board. My Question is, is there any way for me to reprogram UART2 so that it uses pins other than 16 and 17 (e.g. pin 14 and 12), and if so can somebody explain to me how to do it in Mongoose OS? Thank you

LilyGO commented 3 years ago

If compatible with Arduino, you can use " serial2.begin (115200, SERIAL_8N1, RX_PIN, TX_PIN); "