ESP32 HardSerial note

This commit is contained in:
Matt McWilliams 2023-07-03 22:44:43 -04:00
parent 5400518ea6
commit 318f931dbf
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#include <Arduino.h>
#define RXD2 16
#define TXD2 -1
HardwareSerial Serial2(1);
void setup () {
Serial2.begin(57600, SERIAL_8N1, RXD2, TXD2);
}
void loop () {
now = millis();
if (Serial2.available() > 0) {
//cmdChar = Serial2.read();
}
}