rmk 0.8.2

Keyboard firmware written in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
use embedded_hal::digital::{ErrorType, InputPin, OutputPin};

#[cfg(feature = "_nrf_ble")]
pub mod nrf;
#[cfg(feature = "rp2040")]
pub mod rp;

/// Pin that can be switched between input and output.
pub trait FlexPin: ErrorType + InputPin + OutputPin {
    fn set_as_input(&mut self) -> ();

    fn set_as_output(&mut self) -> ();
}