diff --git a/notes/esp32_serial/esp32_serial.ino b/notes/esp32_serial/esp32_serial.ino new file mode 100644 index 0000000..af99b6b --- /dev/null +++ b/notes/esp32_serial/esp32_serial.ino @@ -0,0 +1,22 @@ + +#include + +#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(); + } +}