Need help with a code! #4
Unanswered
OleksiiMykhailov1
asked this question in
Q&A
Replies: 2 comments
-
|
How about something like this: I did not test it on hardware and it can get further improved by not calling digitalWrite() if the output status has not changed, but I hope it points you in the right direction. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to write non-blocking code that should replace this:
sequence array is controlled by buttons.
I spend the last two days trying to write a non-blocking variant of this code but nothing works as is needed. In one case it was non-blocking but timings were off, in other timing was ok but blocked input from buttons and I was not able to change the array on the go.
If you can show me the direction to move from here, it will be great.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions