Function microbit::display::initialise_display [−][src]
pub fn initialise_display<T: Instance>(
timer: &mut MicrobitDisplayTimer<T>,
_pins: &mut DisplayPins
)
Initialises the micro:bit hardware to use the display driver.
Assumes the GPIO port is in the state it would have after system reset.
Example
ⓘ
let mut p: nrf51::Peripherals = _; let mut timer = microbit::display::MicrobitDisplayTimer::new(p.TIMER1); microbit::display::initialise_display(&mut timer, &mut p.GPIO);