Our great sponsors
-
rtic-examples
Example projects using Real-Time Interrupt-driven Concurrency (RTIC) on different MCUs
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
NoBoilerplate [1] is a great Rust-oriented YouTube channel that's less tutorial and more of a tour of the strengths and foibles of the language. The videos are a great springboard, because they are entertaining as much as informative and inject a bit of hype and hope for when you're battling the compiler.
[1] https://www.youtube.com/c/NoBoilerplate
> }
And this is how to do it using embassy, which is an async framework for embedded in rust:
https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
You should try again. I think that code is verbose because of the borrowing and because you're trying to do a one-liner. I use the nrf-hal library with the nrf52840, and the code reads pretty nicely. Here's an example:
https://github.com/nrf-rs/nrf-hal/blob/master/examples/blink...