Hi All
Is there a way to put this example into a auto refreshing variable without using " i = 0 to 5000". I would like to monitor the button presses.
Thanks
Zim
Button status to a variable?
Button status to a variable?
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 1966
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 422 times
- Been thanked: 1310 times
- Contact:
Re: Button status to a variable?
use a timer and get the value inside a variable
example
example
Code: [Local Link Removed for Guests]
tm1638.setup 4, 5, 15
tm = tm1638.buttons
timer0 200, gettm1638
wait
gettm1638:
tm = tm1638.buttons
return