pixtend 0.1.0

Rust library for the PiXtend V2L board
Documentation
  • Coverage
  • 40.2%
    41 out of 102 items documented3 out of 33 items with examples
  • Size
  • Source code size: 80.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.62 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 46s Average build duration of successful builds.
  • all releases: 46s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • DKolter/pixtend
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DKolter

PiXtend

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)