Expand description
Components for the Screen.
§Buffer Size
Displays can receive a large amount of data and having larger transfer buffers optimizes the number of bus writes.
As memory is limited on some MCUs, the `components::screen_buffer_size`` macro allows users to define the size of the screen buffer.
§Usage
// Screen
let screen =
components::screen::ScreenComponent::new(board_kernel, tft, None)
.finalize(components::screen_component_static!(40960));
// Screen with Setup
let screen =
components::screen::ScreenComponent::new(board_kernel, tft, Some(tft))
.finalize(components::screen_component_static!(40960));