linux_max6675

Crates.iolinux_max6675
lib.rslinux_max6675
version0.2.1
sourcesrc
created_at2023-11-19 06:25:28.688116
updated_at2024-02-02 22:19:15.950775
descriptionA library that reads temperature data from a MAX6675 over the Linux kernel's SPI API.
homepage
repositoryhttps://github.com/onkoe/linux_max6675
max_upload_size
id1040939
size21,608
Barrett Ray (onkoe)

documentation

README

linux_max6675

This is a Rust library that helps you communicate with your MAX6675 over Linux's SPI API.

Usage

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));
}

Why..?

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!

Contributing

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! 😄️

Commit count: 14

cargo fmt