1use beepy_display::BeepyDisplay;
2use embedded_graphics::{
3 mono_font::{ascii::FONT_9X18_BOLD, MonoTextStyle},
4 pixelcolor::BinaryColor,
5 prelude::*,
6 text::Text,
7};
8use std::error;
9
10fn main() -> Result<(), Box<dyn error::Error>> {
11 let mut display = BeepyDisplay::new("/dev/fb1".into())?;
12
13 let text_style = MonoTextStyle::new(&FONT_9X18_BOLD, BinaryColor::On);
14 Text::new("Hello!", Point::new(20, 30), text_style).draw(&mut display)?;
15
16 display.flush();
17
18 std::io::stdin().read_line(&mut String::new()).unwrap();
19
20 Ok(())
21}