pixtend 0.1.0

Rust library for the PiXtend V2L board
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// GPIO configuration options
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum GpioConfig {
    /// GPIO Input with optional pullup resistor
    Input(bool),
    /// GPIO Output
    Output,
    /// 1 Wire sensor mode for DHT11, DHT22, AM2302
    Sensor,
}

impl Default for GpioConfig {
    fn default() -> Self {
        GpioConfig::Input(false)
    }
}