Expand description
Component for the Japan Display LPM013M126 display.
§Usage
// Optional
let spi_device = static_init!(
VirtualSpiMasterDevice<'static, nrf52840::spi::SPIM>,
VirtualSpiMasterDevice::new(
mux_spi,
&nrf52840_peripherals.gpio_port[Pin::P0_05], // CS pin
),
);
let display
= components::lpm013m126::Lpm013m126Component::new(
disp_pin,
extcomin_pin,
alarm_mux,
)
.finalize(
components::lpm013m126_component_static!(
nrf52840::rtc::Rtc<'static>,
nrf52840::gpio::GPIOPin,
VirtualSpiMasterDevice<'static, nrf52840::spi::SPIM>,
spi_mux,
cs_pin,
)
);
display.initialize().unwrap();
// wait for `ScreenClient::screen_is_ready` callback