Skip to content

Instantly share code, notes, and snippets.

@ahmaddidiks
Last active October 18, 2022 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmaddidiks/c7ee039eb8abbdda5a3c226fe12662c1 to your computer and use it in GitHub Desktop.
Save ahmaddidiks/c7ee039eb8abbdda5a3c226fe12662c1 to your computer and use it in GitHub Desktop.
ESP32 Multiple Serial Communication
// SERIAL 1 PINS
#define RXD1 32
#define TXD1 33
// SERIAL 2 PINS
#define RXD2 16
#define TXD2 17
void main()
{
Serial.begin(115200);
Serial1.begin (115200, SERIAL_8N1, RXD1, TXD1);
Serial2.begin (115200, SERIAL_8N1, RXD2, TXD2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment