pub trait Led {
// Required methods
fn init(&self);
fn on(&self);
fn off(&self);
fn toggle(&self);
fn read(&self) -> bool;
}
Expand description
Simple on/off interface for LED pins.
Since GPIO pins are synchronous in Tock the LED interface is synchronous as well.