-
Notifications
You must be signed in to change notification settings - Fork 40
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
Non Blocking API #4
Comments
Well the API I had in mind would be to spawn a future when issuing a command as not to "block the main thread". Then wait for the busy signal from the LCD to go low and use that as the indicator that the future should be finished when polling. I know the |
I'm willing to implement this. It's a simple matter of accepting an async delay, and then modifying the api to "async". |
Hey @xoviat would it be possible to know if any progress was made on this, considering using this library with rtic.rs |
The problem is that there are no async traits. rust-embedded/embedded-hal#206 was submitted, but that went nowhere. I had considered just adding a dependency on embassy (the async library that I'm using), but I haven't done that yet. The problem with RTIC IMO is there's no encapsulation, which is why I like embassy better. |
@xoviat and if you use embassy, how would you implement the solution? I'm a tad new to rust trying to figure out how to get past this more than keen to try do the work |
@zacck can you join https://app.element.io/#/room/#rust-embedded:matrix.org so that we can discuss this? |
Hey @JohnDoneth would you please make a new release for this, for some reason I cant reach the masync module at this moment using this as github dependency. |
@zacck Sure! I will prioritize getting a release out. In the meantime did you add |
@JohnDoneth I did not do that, its likely what I need! Still learning |
Can you share your thoughts around the non-blocking API? I'd be willing to take a stab at it, but I'm not sure what you had in mind.
The text was updated successfully, but these errors were encountered: