cu-rp-encoder 0.15.0

This is a driver for the Raspberry Pi to decode a directional encoder from GPIOs.
Documentation
1
2
3
4
5
6
7
8
9
10
use cu29_traits::CuResult;

pub struct InputPin {
    #[allow(dead_code)]
    pin_nb: u8,
}

pub fn get_pin(pin_nb: u8) -> CuResult<InputPin> {
    Ok(InputPin { pin_nb })
}