rustpi_io 0.1.0

RustpiIO is a library to read and write to the SPI bus and the GPIO pins of a Raspberry Pi.
Documentation
1
2
3
4
5
6
7
8
/// Path to the gpio interface
pub const GPIO_PATH: &str = "/sys/class/gpio/";
/// Path to the hardware information
pub const RASPI_INFO_PATH: &str = "/proc/cpuinfo";
/// Path to the first spi interface
pub const SPI_PATH0: &str = "/dev/spidev0.0";
/// Path to the second spi interface
pub const SPI_PATH1: &str = "/dev/spidev0.1";