http_callback_req_ans

This commit is contained in:
2023-05-24 18:41:06 +03:00
parent 8fc9524884
commit adbf8b644d
4 changed files with 64 additions and 8 deletions
+12 -7
View File
@@ -1,10 +1,15 @@
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
#define PIN_INPUT 7
void setup () {
Serial.begin(9600);
pinMode(PIN_INPUT, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Все будет хорошо!");
delay(100);
void loop () {
if(digitalRead(PIN_INPUT) == HIGH) {
Serial.println("1");
}
else {
Serial.println("0");
}
}