Struct riot_wrappers::led::LED
source · pub struct LED<const I: u8>(/* private fields */);
Expand description
The Ith LED (calling the LED<I>_{ON,OFF,TOGGLE}
macros).
The preferred interface for turning a LED on and off is switch_hal::OutputSwitch.
LEDs are accessible safely; any not implemented on a board are silently ignored.
LEDs are wrapped into embedded-hal 0.2 GPIOs for compatibility reasons (but that integration is discontinued with embedded-hal 1.0); GPIO is interpreted such that “high” is having the LED on, and “low” is off.
Implementations§
Trait Implementations§
source§impl<const I: u8> OutputSwitch for LED<I>
impl<const I: u8> OutputSwitch for LED<I>
source§impl<const I: u8> ToggleableOutputPin for LED<I>
impl<const I: u8> ToggleableOutputPin for LED<I>
Auto Trait Implementations§
impl<const I: u8> RefUnwindSafe for LED<I>
impl<const I: u8> Send for LED<I>
impl<const I: u8> Sync for LED<I>
impl<const I: u8> Unpin for LED<I>
impl<const I: u8> UnwindSafe for LED<I>
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