In Belgium, we use the character ë.
But when I use this character in an app, I get an ansii error.
How can I solve that?
Is it possible to have a variable loop @every?
I would like to do something like this:
intervalposition = 1 intervals=[0,1,3,5,10,20,30,60] @every(seconds=intervals[intervalposition]) def main(): #do stuff
And then I can change the
intervalposition when a button is pressed.
Or will I have to do some wait in the
seconds=intervals[intervalposition] works on startup, but it does not change when the value get changed during runtime.
I used a
time.sleep(intervals[intervalposition]) at the end of the loop, but that simply makes the whole program wait, so the buttons don't react.
Looks like your connection to vampie was lost, please wait while we try to reconnect.