I'm using interrupts for the following 2 cases.
The first one to run a function after the tact switch is being clicked. This is working perfectly, no issues.
The second one is a 24v connected to the raspberry pi via a voltage divider (24v to 3.3v voltage divider). The state by default is 1 because the 24v power source is on, when I turn off the power source, the state changes to 0 BUT no interrupt is being triggered. The only way to make it work is to poll every time in the loop. Is this normal? If so, why? and how can I make this work?
Thanks.