Struct ev3dev_lang_rust::Led
source · pub struct Led { /* private fields */ }Available on crate feature
ev3 only.Expand description
The led’s on top of the EV3 brick.
Implementations§
source§impl Led
impl Led
sourcepub const COLOR_GREEN: (u8, u8) = _
pub const COLOR_GREEN: (u8, u8) = _
Led color green.
sourcepub const COLOR_AMBER: (u8, u8) = _
pub const COLOR_AMBER: (u8, u8) = _
Led color amber.
sourcepub const COLOR_ORANGE: (u8, u8) = _
pub const COLOR_ORANGE: (u8, u8) = _
Led color orange.
sourcepub const COLOR_YELLOW: (u8, u8) = _
pub const COLOR_YELLOW: (u8, u8) = _
LED color yellow.
sourcepub fn get_left_color(&self) -> Ev3Result<(u8, u8)>
pub fn get_left_color(&self) -> Ev3Result<(u8, u8)>
Returns the current color value of the left led.
sourcepub fn set_left_color(&self, color: (u8, u8)) -> Ev3Result<()>
pub fn set_left_color(&self, color: (u8, u8)) -> Ev3Result<()>
Sets the color value of the left led.
sourcepub fn get_right_color(&self) -> Ev3Result<(u8, u8)>
pub fn get_right_color(&self) -> Ev3Result<(u8, u8)>
Returns the current color value of the right led.
sourcepub fn set_right_color(&self, color: (u8, u8)) -> Ev3Result<()>
pub fn set_right_color(&self, color: (u8, u8)) -> Ev3Result<()>
Sets the color value of the right led.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Led
impl Send for Led
impl Sync for Led
impl Unpin 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