#linux-kernel #spi #linux #read #max6675

linux_max6675

A library that reads temperature data from a MAX6675 over the Linux kernel's SPI API

4 releases

0.2.1 Feb 2, 2024
0.2.0 Dec 4, 2023
0.1.1 Nov 21, 2023
0.1.0 Nov 19, 2023

#171 in Robotics

27 downloads per month

MIT license

10KB
74 lines

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

Dependencies

~2.5MB
~55K SLoC