#[repr(C)]pub struct InfoLedPattern {
pub delay: u8_,
pub smoothing: u8_,
pub loopDelay: u8_,
pub blinkSpeed: u8_,
pub redPattern: [u8_; 32],
pub greenPattern: [u8_; 32],
pub bluePattern: [u8_; 32],
}Fields§
§delay: u8_< Delay between pattern values, 1/16th of a second (1 second = 0x10)
smoothing: u8_< Smoothing between pattern values (higher = smoother)
loopDelay: u8_< Delay between pattern loops, 1/16th of a second (1 second = 0x10, 0xFF = pattern is played only once)
blinkSpeed: u8_< Blink speed, when smoothing == 0x00
redPattern: [u8_; 32]< Pattern for red component
greenPattern: [u8_; 32]< Pattern for green component
bluePattern: [u8_; 32]< Pattern for blue component
Trait Implementations§
Source§impl Clone for InfoLedPattern
impl Clone for InfoLedPattern
Source§fn clone(&self) -> InfoLedPattern
fn clone(&self) -> InfoLedPattern
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InfoLedPattern
impl Debug for InfoLedPattern
Source§impl Default for InfoLedPattern
impl Default for InfoLedPattern
Source§fn default() -> InfoLedPattern
fn default() -> InfoLedPattern
Returns the “default value” for a type. Read more
impl Copy for InfoLedPattern
Auto Trait Implementations§
impl Freeze for InfoLedPattern
impl RefUnwindSafe for InfoLedPattern
impl Send for InfoLedPattern
impl Sync for InfoLedPattern
impl Unpin for InfoLedPattern
impl UnwindSafe for InfoLedPattern
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)