(target: &mut D, target_text: &str, offset: Point)
| 28 | } |
| 29 | |
| 30 | pub fn draw_text<D>(target: &mut D, target_text: &str, offset: Point) -> Result<(), D::Error> |
| 31 | where |
| 32 | D: DrawTarget<Color = Rgb565>, |
| 33 | { |
| 34 | let text = Text::new( |
| 35 | target_text, |
| 36 | Point::new(30, 30) + offset, |
| 37 | MonoTextStyle::new(&FONT_9X15, Rgb565::BLACK), |
| 38 | ); |
| 39 | |
| 40 | text.draw(target)?; |
| 41 | |
| 42 | Ok(()) |
| 43 | } |
| 44 | |
| 45 | pub fn draw_logo<D>(target: &mut D, offset: Point) -> Result<Rectangle, D::Error> |
| 46 | where |
no outgoing calls
no test coverage detected