Create Thread for animation?
-
Is it possible in UIFlow to create some kind of Thread to have a AtomMatrix LED animation running while a HTTP Request fetches a URL?
Cheers
Mike -
You should be able to use timers and/or button callbacks for that. Without knowing exactly what you want to do, it’s hard to say. Give it a try and if you have issues, post your flow here.
-
My program needs to do a HTTP API request that takes about 10-20 seconds. During this time I would like to show a waiting animation updating every 1 sec.
Would I use timers to implement this and set a global variable to stop the animation when the request is done?
-
Hi @mb
yes, I suppose you could use a global variable, but timers also allow to be started and stopped. So you could start the timer with the animation, do the http request and when it's done stop the timer again.
Cheers
Felix
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