mirror of
https://gitlab.com/wirelos/sprocket-plugin-gpio.git
synced 2025-12-15 21:58:21 +01:00
overridable input check, startup delay
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
void PirInputPlugin::checkInput()
|
||||
{
|
||||
|
||||
if(startupDelay > millis()){
|
||||
return;
|
||||
}
|
||||
val = digitalRead(config.pin); // read input value
|
||||
if (val == HIGH)
|
||||
{ // check if the input is HIGH
|
||||
|
||||
Reference in New Issue
Block a user