Struct ev3dev_lang_rust::led::Led [−][src]
pub struct Led { /* fields omitted */ }
Methods
impl Led
[src]
impl Led
pub fn new() -> Option<Led>
[src]
pub fn new() -> Option<Led>
pub fn get_left_red(&mut self) -> AttributeResult<u8>
[src]
pub fn get_left_red(&mut self) -> AttributeResult<u8>
pub fn set_left_red(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn set_left_red(&mut self, brightness: u8) -> AttributeResult<()>
pub fn get_left_green(&mut self) -> AttributeResult<u8>
[src]
pub fn get_left_green(&mut self) -> AttributeResult<u8>
pub fn set_left_green(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn set_left_green(&mut self, brightness: u8) -> AttributeResult<()>
pub fn get_right_red(&mut self) -> AttributeResult<u8>
[src]
pub fn get_right_red(&mut self) -> AttributeResult<u8>
pub fn set_right_red(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn set_right_red(&mut self, brightness: u8) -> AttributeResult<()>
pub fn get_right_green(&mut self) -> AttributeResult<u8>
[src]
pub fn get_right_green(&mut self) -> AttributeResult<u8>
pub fn set_right_green(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn set_right_green(&mut self, brightness: u8) -> AttributeResult<()>
pub fn get_left_color(&mut self) -> AttributeResult<(u8, u8)>
[src]
pub fn get_left_color(&mut self) -> AttributeResult<(u8, u8)>
pub fn set_left_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
pub fn set_left_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
pub fn get_right_color(&mut self) -> AttributeResult<(u8, u8)>
[src]
pub fn get_right_color(&mut self) -> AttributeResult<(u8, u8)>
pub fn set_right_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
pub fn set_right_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
pub fn get_color(&mut self) -> AttributeResult<Option<(u8, u8)>>
[src]
pub fn get_color(&mut self) -> AttributeResult<Option<(u8, u8)>>
Returns None if left and right colors are different.
pub fn set_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
pub fn set_color(&mut self, color: (u8, u8)) -> AttributeResult<()>