Interrupt routine for remote switch in UIFlow
-
Putty, the walking robot can go forward or backwards. When walking, I cannot stop or switch direction using a remote switch, because I cannot interrupt the flow. An interrupt routine is needed I guess. I found examples for a H/W pin interrupt, but not for S/W. Can anyone please help me?

-
actually, we don't suggest putting the
loopto the callback function. I think you could create a variable to save the current state, and then use the remote callback to change the state. -
Thank you. Don't understand what you suggest, but finally I got it working like this:

Maybe you have better idea! -
@werner_g that's what I mean. haha. you did it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login