Struct tessel::Tessel
[−]
[src]
pub struct Tessel { pub port: PortGroup, pub led: Vec<LED>, }
Primary exported Tessel object with access to module ports, LEDs, and a button.
Example
use rust_tessel::Tessel; let t = Tessel::new(); // Tessel 2 has four LEDs available. assert_eq!(t.led.len(), 4); // Tessel 2 has two ports labelled a and b let a = t.port.a; let b = t.port.b;
Fields
port: PortGroup
led: Vec<LED>