Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better tutorials in using Asyncio? #46

Closed
djairjr opened this issue Aug 15, 2023 · 4 comments
Closed

Better tutorials in using Asyncio? #46

djairjr opened this issue Aug 15, 2023 · 4 comments

Comments

@djairjr
Copy link

djairjr commented Aug 15, 2023

I'm developing some puzzles for Escape Room and I'm porting some of my solutions to Circuitpython. But I'm having some difficulty with the idea of multi-tasking. I'm using Asyncio and even managed to put a countdown running at the same time as one of my games. But I couldn't figure out yet how I could make these two tasks communicate. I noticed that Asyncio has an Events feature, and many others, but there is no specific tutorial and no examples. I'm working on the basis of trial and error. If I have any miraculous understanding, I will write something and notice to you. But in the meantime, I signal this lack here.

@FoamyGuy
Copy link
Contributor

This guide covers the topic quite well: https://learn.adafruit.com/cooperative-multitasking-in-circuitpython-with-asyncio including a section on how to communicate between different tasks.

@djairjr
Copy link
Author

djairjr commented Aug 16, 2023

Not enough. I' ve already read it...

@djairjr
Copy link
Author

djairjr commented Aug 16, 2023

I will post my code this afternoon.

@FoamyGuy
Copy link
Contributor

resolved by #67. If there are other specific tutorials or examples that anyone would like to propose we can open another issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants