pub struct Screen { /* private fields */ }Expand description
Represents the screen on a Vex controller
Implementations§
Source§impl Screen
impl Screen
Sourcepub fn clear_line(&mut self, line: u8)
pub fn clear_line(&mut self, line: u8)
Clears an individual line of the controller screen. Lines range from 0 to 2
Sourcepub fn print(&mut self, line: u8, column: u8, str: &str)
pub fn print(&mut self, line: u8, column: u8, str: &str)
Prints text to the controller LCD screen. Lines range from 0 to 2. Columns range from 0 to 18
Sourcepub fn rumble(&mut self, rumble_pattern: &str)
pub fn rumble(&mut self, rumble_pattern: &str)
Rumble the controller. Rumble pattern is a string consisting of the characters ‘.’, ‘-’, and ‘ ‘, where dots are short rumbles, dashes are long rumbles, and spaces are pauses; all other characters are ignored. Maximum supported length is 8 characters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Screen
impl !RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl !UnwindSafe for Screen
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