http_callback_req_ans
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user