Crates.io | linux_max6675 |
lib.rs | linux_max6675 |
version | 0.2.1 |
source | src |
created_at | 2023-11-19 06:25:28.688116 |
updated_at | 2024-02-02 22:19:15.950775 |
description | A library that reads temperature data from a MAX6675 over the Linux kernel's SPI API. |
homepage | |
repository | https://github.com/onkoe/linux_max6675 |
max_upload_size | |
id | 1040939 |
size | 21,608 |
This is a Rust library that helps you communicate with your MAX6675 over Linux's SPI API.
For full examples, please see the examples folder!
However, you can get away with using something like this:
let mut max = Max6675::new("/dev/spidev0.0")?;
std::thread::sleep(Duration::from_secs(3));
loop {
println!("Read Celsius! Got: {}° C.", max.read_celsius()?);
std::thread::sleep(Duration::from_millis(500));
}
I built this library for use on my robotics and vehicular telemetry projects. Please let me know if there are any missing features - I'm happy to add them. 🤩️
I'd also like to see additional examples. If you have any ideas, please let me know and I'll stick it in the examples
folder.
Also, it's fairly likely this'll end up on my blog sometime soon! If this is looking a bit difficult to use, I'll definitely have a simple guide up at some point!
If there's something you want to see, or a fix you'd like to submit, feel free to send in a PR!
Make sure to reach out in the Issues before doing anything significant, though! 😄️