pub struct Led {
pub r: u8,
pub g: u8,
pub b: u8,
pub intensity: u8,
}Expand description
Represents a single LED with RGB color and intensity
Fields§
§r: u8Red component (0-255)
g: u8Green component (0-255)
b: u8Blue component (0-255)
intensity: u8Intensity percentage (0-100). Values above 100 are clamped to 100 at write time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Led
impl RefUnwindSafe for Led
impl Send for Led
impl Sync for Led
impl Unpin for Led
impl UnsafeUnpin for Led
impl UnwindSafe for Led
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