shared/
character_select.rs1use embedded_graphics::{pixelcolor::BinaryColor, prelude::DrawTarget};
2
3pub async fn process<D>(device: &mut D) -> Option<&str>
4where
5 D: DrawTarget<Color = BinaryColor> + crate::Keypad,
6{
7 let mut characters = [
8 "<", ">", "[", "]", "(", ")", "{", "}", "\\", "/", "=", "+", "*", "-", "\"", "'", "`", "@",
9 "^", "#", "$", "%", "&", ",", ".", ":", ";", "!", "?", "_", "|", "~",
10 ];
11 let mut menu = crate::menu::Menu::new(&mut characters, Some("Use"), |a, b, c, d, e| {
12 crate::menu::grid_render(a, b, c, d, e)
13 });
14 return menu.process(device).await;
15}