| 123456789101112131415161718192021222324252627 |
- #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());
- }
- }
|