shiftreg-spi 0.1.0

SPI-based driver for shift registers such as 74HC595 with embedded-hal API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use core::fmt::Debug;

#[derive(Debug)]
pub enum ShiftRegError<SpiError> {
    Spi(SpiError),
}

impl<SpiError> embedded_hal::digital::Error for ShiftRegError<SpiError>
where
    SpiError: Debug,
{
    fn kind(&self) -> embedded_hal::digital::ErrorKind {
        embedded_hal::digital::ErrorKind::Other
    }
}