Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
* doorBell_test.ino
* Copyright (c) 2019 Sitinut Waisara
* magiapp.me | github.com/maxmacstn
*/
int signalPin = D1;
void setup() {
Serial.begin(115200);
pinMode(signalPin,INPUT);
}
void loop() {
if(digitalRead(signalPin) == HIGH){
Serial.println("Doorbell Pressed");
delay(2000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.