Hello Dimitry,
I am trying to configure a set of pins as input pullups. I want a function to be called when a pin becomes low or is already low in the beginning.
So I have created a debounce object and registered on_state_changed callbacks for every pin. The problem is, if the pin is already low, the callback is not called.
How should I program it correctly?