Question of the day — just ported of a PD script from a PI that required the pin to be polled constantly for the script to work; in this case, we've got 40ms pings on a pin to check if it's 0 or 1;

Does Bela need this? Or is it omnipotent in that it just knows?

Andrew

Check out the example PureData/digital-in: you don't need to poll anything. Once the pin is set to an input, use [receive bela_digitalIn17] to receive a message every time the state changes

Great, let’s remove all the nonsense from me patch

Cheers