Tasmota/lib/default/TasmotaSerial-3.3.0/examples/swsertest/swsertest.ino
Theo Arends 2057912276 Change TasmotaSerial library from v3.2.0 to v3.3.0
Change TasmotaSerial library from v3.2.0 to v3.3.0
2021-03-02 11:44:06 +01:00

28 lines
417 B
C++

#include <TasmotaSerial.h>
TasmotaSerial swSer(14, 12);
void setup() {
Serial.begin(115200);
swSer.begin();
Serial.println("\nTasmota serial test started");
for (char ch = ' '; ch <= 'z'; ch++) {
swSer.write(ch);
}
swSer.println("");
}
void loop() {
while (swSer.available() > 0) {
Serial.write(swSer.read());
}
while (Serial.available() > 0) {
swSer.write(Serial.read());
}
}