tm1637_embedded_hal/options/
circles.rsuse crate::{tokens::NotFlipped, TM1637};
mod bits;
mod default_options;
mod direction;
pub use bits::*;
pub use default_options::RotatingCircleOptions;
pub use direction::*;
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct CirclesDisplayOptions<'d, const N: usize, T, CLK, DIO, DELAY> {
device: &'d mut TM1637<N, T, CLK, DIO, DELAY>,
}
impl<'d, const N: usize, T, CLK, DIO, DELAY> CirclesDisplayOptions<'d, N, T, CLK, DIO, DELAY> {
pub fn new(device: &'d mut TM1637<N, T, CLK, DIO, DELAY>) -> Self {
Self { device }
}
pub fn rotating(self) -> RotatingCircleOptions<'d, N, T, CLK, DIO, DELAY, NotFlipped> {
RotatingCircleOptions::new_with_defaults(self.device, NotFlipped)
}
}