Struct esp_hal_smartled::SmartLedsAdapter
source · pub struct SmartLedsAdapter<TX, const CHANNEL: u8, const BUFFER_SIZE: usize>where
TX: TxChannel<CHANNEL>,{ /* private fields */ }
Expand description
Adapter taking an RMT channel and a specific pin and providing RGB LED
interaction functionality using the smart-leds
crate
Implementations§
source§impl<'d, TX, const CHANNEL: u8, const BUFFER_SIZE: usize> SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: TxChannel<CHANNEL>,
impl<'d, TX, const CHANNEL: u8, const BUFFER_SIZE: usize> SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: TxChannel<CHANNEL>,
sourcepub fn new<C, O>(
channel: C,
pin: impl Peripheral<P = O> + 'd
) -> SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
O: OutputPin + 'd,
C: TxChannelCreator<'d, TX, O, CHANNEL>,
pub fn new<C, O>(
channel: C,
pin: impl Peripheral<P = O> + 'd
) -> SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
O: OutputPin + 'd,
C: TxChannelCreator<'d, TX, O, CHANNEL>,
Create a new adapter object that drives the pin using the RMT channel.
Trait Implementations§
source§impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> SmartLedsWrite for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: TxChannel<CHANNEL>,
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> SmartLedsWrite for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: TxChannel<CHANNEL>,
Auto Trait Implementations§
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> RefUnwindSafe for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: RefUnwindSafe,
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> Send for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: Send,
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> Sync for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: Sync,
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> Unpin for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: Unpin,
impl<TX, const CHANNEL: u8, const BUFFER_SIZE: usize> UnwindSafe for SmartLedsAdapter<TX, CHANNEL, BUFFER_SIZE>where
TX: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more