Function tm1637_gpio_driver::gpio_api::setup_gpio_cdev[][src]

pub fn setup_gpio_cdev(
    clk_pin: u32,
    dio_pin: u32,
    bit_delay_fn: Box<dyn Fn()>,
    gpio_dev: &str
) -> TM1637Adapter

Sets up the Driver using “gpio-cdev”-crate as GPIO interface/library. This is better than wiringpi or “sysfs” because it uses the modern character device based API/Driver in the linux kernel. See https://docs.rs/gpio-cdev/0.3.0/gpio_cdev/

  • gpio_dev is probably always “/dev/gpiochip0”