update code

This commit is contained in:
Alexander Popov 2023-08-16 22:18:50 +03:00
parent 836a237ec7
commit 105ab964e2
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6

View File

@ -3,12 +3,14 @@ char target[] = "hello";
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
if (Serial.find(target))
Serial.println("found");
// вывести found, если было послано hello
}
}
void loop() {
//
}