MAX31855 driver with linearization and async embedded_hal support
use max31855_rs::MAX31855;
let mut device = MAX31855::new(spi);
// Sync
let data = device.read_data()?;
// Async
let data = device.read_data().await?;
let data_raw = data.raw();
let temp = data.get_linear_temp()?;
linearization
- enables linearization for K-type thermocouples as described in https://learn.adafruit.com/calibrating-sensors/maxim-31855-linearization. Requires eitherlibm
ormicromath
feature to work.hal-async
- enables async spi reading usingembedded-hal-async
interfaces (currently requires nightly compiler)hal-block
- enables blocking spi reading usingembedded-hal
interfaces
License: MIT OR Apache-2.0