this post was submitted on 12 Jun 2023
43 points (100.0% liked)
Rust Lang
148 readers
1 users here now
Rules [Developing]
Observe our code of conduct
- Strive to treat others with respect, patience, kindness, and empathy.
- We observe the Rust Project Code of Conduct.
- Submissions must be on-topic
- Posts must reference Rust or relate to things using Rust. For content that does not, use a text post to explain its relevance.
- Post titles should include useful context.
- For Rust questions, use the stickied Q&A thread. [TBD]
- Arts-and-crafts posts are permitted on weekends.
- No meta posts; message the mods instead.
Constructive criticism only
- Criticism is encouraged, though it must be constructive, useful and actionable.
- If criticizing a project on GitHub, you may not link directly to the project’s issue tracker. Please create a read-only mirror and link that instead.
- Keep things in perspective
- A programming language is rarely worth getting worked up over.
- No zealotry or fanaticism.
- Be charitable in intent. Err on the side of giving others the benefit of the doubt.
No endless relitigation
- Avoid re-treading topics that have been long-settled or utterly exhausted.
- Avoid bikeshedding.
- This is not an official Rust forum, and cannot fulfill feature requests. Use the official venues for that.
No low-effort content
- Showing off your new projects is fine
No memes or image macros
- Please find other communities to post memes
No NSFW Content
- There are many other NSFW communities, let’s keep this related to the language
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you also programmibg the esp using rust? Ive only gotten pretty basic stuff to run on embedded systems with rust despite really wishing that I could do more
I have done some small experiments (not much beyond a blinking light at this point) and I feel that the main issue right now for a beginner is that the documentation isn't there yet. By far.
Also I have read that many of the crates that use the same bus don't play well with each other (e.g. two devices on the same i2c bus) even though that is what embedded-hal is supposed to be all about. Many early crates are also abandoned apparently, further compounding this problem. I don't have enough personal experience though to tell if this is true.
Yeah finding crates has also been my issue. Ive done HAL on a raspberry pi and it has been fairly painless, but Im still strugggling to get my head around no_std convensions on bare metal chips.. Also last I checked I couldnt figure out more advanced stuff like connectivity where I think Rust will really shine
Not there yet. Just started with the Backend. But i read about Rust on embedded devices. I need to do some more research, but if its a realistic Option, i will try to
I recently did a similar project. I have an old Chumby One device. I wrote a simple app that renders the time and date and outdoor temp and humidity. It receives the weather data over mqtt from rtl_433 running on an old wireless router with a USB sdr dongle.
It writes the image directly to the framebuffer /dev/fb0
I cross compiled for armv5te-unknown-linux-musleabi and it works great. Hard to get much running on 64mb of ram these days.
I hope to get the source up on GitHub when I get some time.