4 ms·
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 fun
by snalty 6y 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?
- pas 6y agoYes. 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 https://github.com/rust-embedded/rust-i2cdev
- mjw1007 6y agoYes. Some of my first Rust projects were that sort of embedded thing.
- dbrgn 6y agoYes. Check out https://rust-embedded.github.io/book/ https://rust-embedded.github.io/book/.
- vvanders 6y agoYup, 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.