pub trait LedIndexed {
// Required methods
fn init(&self, index: usize);
fn on(&self, index: usize);
fn off(&self, index: usize);
fn toggle(&self, index: usize);
fn read(&self, index: usize) -> bool;
}
Expand description
Mirror of the kernel::hil::led::Led
trait but that supports LED indices.
This is implemented by ScreenOnLed
. The trait allows us to avoid having
to replicate the const
types on ScreenOnLed
.