update code
This commit is contained in:
parent
836a237ec7
commit
105ab964e2
@ -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() {
|
||||
//
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user