25 lines
388 B
C++
25 lines
388 B
C++
/*
|
|
Author: Alexander Popov
|
|
License: Unlicense
|
|
*/
|
|
|
|
#include "3party/AsyncStream.h"
|
|
AsyncStream<50> serial(&Serial, '\n');
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop() {
|
|
if (strcmp(serial.buf, "ping") == 0) {
|
|
Serial.println("PONG");
|
|
}
|
|
|
|
Serial.println("ooooo");
|
|
// delay(1000);
|
|
Serial.println("zzzz");
|
|
// delay(1000);
|
|
Serial.println("xxx");
|
|
// delay(1000);
|
|
}
|