embedded_hal/
lib.rs

1#![doc = include_str!("../README.md")]
2#![warn(missing_docs)]
3#![no_std]
4
5pub mod delay;
6pub mod digital;
7pub mod i2c;
8pub mod pwm;
9pub mod spi;
10
11mod private {
12    use crate::i2c::{SevenBitAddress, TenBitAddress};
13    pub trait Sealed {}
14
15    impl Sealed for SevenBitAddress {}
16    impl Sealed for TenBitAddress {}
17}
18
19// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
20#[cfg(feature = "defmt-03")]
21use defmt_03 as defmt;