Added the RX gpio pin as input with internal pull up since the signal it is sensing is in open drain config

This commit is contained in:
Th3maz1ng 2019-08-24 20:46:55 +02:00
parent 9874791ace
commit 1f849e2336

View File

@ -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);
}