Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.22 KB

PiXtend

Documentation Crates.io License Downloads

Rust crate support for the Raspberry PiXtend V2L

Features

  • Support for the Raspberry PiXtend L
  • Safe API, which prevents configuration mistakes by design with good error handling
  • Reading digital inputs, analog inputs with automatic unit conversion, DHT11 and DHT22 sensors via GPIOs
  • Writing digital outputs, GPIO, relays, analog outputs via DAC
  • Reading and writing of retain memory supported
  • Safemode and watchdog settings

Example

use pixtend::PiXtend;

fn main() {
    let mut pixtend = PiXtend::new().unwrap();
    for i in 0..=11 {
        pixtend.set_digital_output(i, true).unwrap();
        pixtend.read_write().unwrap();
        std::thread::sleep(std::time::Duration::from_secs(1));
    }
}

Planned

  • PiXtend S support
  • Extension boards (EIO digital / analog)