Skip to content

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

License

Notifications You must be signed in to change notification settings

onkoe/linux_max6675

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published