Skip to content

Implements the protocol between the raspberry pi and the PI-XTEND module

Notifications You must be signed in to change notification settings

DKolter/pixtend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Implements the protocol between the raspberry pi and the PI-XTEND module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages