pixtend

Crates.iopixtend
lib.rspixtend
version0.1.0
sourcesrc
created_at2024-09-06 12:55:51.088952
updated_at2024-09-06 12:55:51.088952
descriptionRust library for the PiXtend V2L board
homepage
repositoryhttps://github.com/DKolter/pixtend
max_upload_size
id1365889
size80,889
Daniel Kolter (DKolter)

documentation

README

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)
Commit count: 0

cargo fmt