Hacker News new | ask | show | jobs
by snalty 2164 days ago
I'm building an embedded project that currently runs a python script for automatic brightness. It takes a brightness value from a sensor over I2C, applies a function to get an appropriate LCD brightness value and then sends that to the display driver over a serial port. Would this be an appropriate project to write in Rust to learn the basics of this language?
4 comments

Yes. We used Rust to drive a few things via GPIO and USB-RS232 a few years ago on a Raspberry Pi, it was a pretty pleasant experience.

Maybe take a look at this I2C lib: https://github.com/rust-embedded/rust-i2cdev

Yup, I've got a small little rust component that translates a couple industrial sensors on modbus + rtl_r443 over to an influx database and it's been happily running along for a few months now.
Yes. Some of my first Rust projects were that sort of embedded thing.