pub struct Tessel {
pub led: Vec<LED>,
}Expand description
Primary exported Tessel object with access to module ports, LEDs, and a button.
§Example
use tessel::Tessel;
let t = Tessel::new();
// Tessel 2 has four LEDs available.
assert_eq!(t.led.len(), 4);Fields§
§led: Vec<LED>Implementations§
Auto Trait Implementations§
impl Freeze for Tessel
impl RefUnwindSafe for Tessel
impl Send for Tessel
impl Sync for Tessel
impl Unpin for Tessel
impl UnwindSafe for Tessel
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