How can I use waitpeq to achieve this? or is there another way?
ElectricAye
Posts: 4,561
I'm trying to reduce power consumption by using waitpeq to pause code execution until either one of two pins goes low. But it seems that waitpeq AND's the pins, so what's the best way to go about doing this?
Basically I want something that kinda works like this:
waitpeq(Pin 27 goes low) OR waitpeq(Pin 28 goes low)
It seems like it should be easy to do, but I'm stumped this morning. Senility creeping in, I guess.
Basically I want something that kinda works like this:
waitpeq(Pin 27 goes low) OR waitpeq(Pin 28 goes low)
It seems like it should be easy to do, but I'm stumped this morning. Senility creeping in, I guess.
Comments
Yes, excellent suggestion. That is next on my to-do list. Thanks!