-
-
Save ahmaddidiks/c7ee039eb8abbdda5a3c226fe12662c1 to your computer and use it in GitHub Desktop.
ESP32 Multiple Serial Communication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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