update code
This commit is contained in:
parent
836a237ec7
commit
105ab964e2
@ -3,12 +3,14 @@ char target[] = "hello";
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
}
|
|
||||||
|
|
||||||
void loop() {
|
|
||||||
if (Serial.available() > 0) {
|
if (Serial.available() > 0) {
|
||||||
if (Serial.find(target))
|
if (Serial.find(target))
|
||||||
Serial.println("found");
|
Serial.println("found");
|
||||||
// вывести found, если было послано hello
|
// вывести found, если было послано hello
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user