Compare commits
2 Commits
9874791ace
...
5cc7d1403a
Author | SHA1 | Date | |
---|---|---|---|
5cc7d1403a | |||
1f849e2336 |
@ -11,6 +11,6 @@ PCF8574 &IOManager::getPcf()
|
||||
|
||||
void IOManager::setISROnIOChange(void (*isrFunc)(), Pin pin)
|
||||
{
|
||||
pinMode(pin, INPUT);
|
||||
pinMode(pin, INPUT_PULLUP);
|
||||
attachInterrupt(digitalPinToInterrupt(pin), isrFunc, FALLING);
|
||||
}
|
||||
|
@ -103,6 +103,7 @@ void loop()
|
||||
|
||||
sab.getScreenManager().displayView();
|
||||
|
||||
if(ioStateChange) Serial.println(F("ISR triggered"));
|
||||
ioStateChange = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user