Make demo text bigger

This commit is contained in:
Sebastian H. Gabrielli 2024-12-21 10:40:44 +01:00
parent f249ac62be
commit 58f37cb2e8

View File

@ -19,7 +19,7 @@ use ili9341::Ili9341;
use {defmt_rtt as _, panic_probe as _}; use {defmt_rtt as _, panic_probe as _};
use embedded_graphics::{ use embedded_graphics::{
mono_font::{ascii::FONT_6X10, MonoTextStyle}, mono_font::{ascii::FONT_10X20, MonoTextStyle},
pixelcolor::{BinaryColor, Rgb565}, pixelcolor::{BinaryColor, Rgb565},
prelude::*, prelude::*,
primitives::{ primitives::{
@ -98,7 +98,7 @@ async fn main(spawner: Spawner) {
) )
.unwrap(); .unwrap();
display.clear(Rgb565::RED).unwrap(); display.clear(Rgb565::CSS_DARK_OLIVE_GREEN).unwrap();
// Create styles used by the drawing operations. // Create styles used by the drawing operations.
let thin_stroke = PrimitiveStyle::with_stroke(Rgb565::WHITE, 1); let thin_stroke = PrimitiveStyle::with_stroke(Rgb565::WHITE, 1);
@ -109,7 +109,7 @@ async fn main(spawner: Spawner) {
.stroke_alignment(StrokeAlignment::Inside) .stroke_alignment(StrokeAlignment::Inside)
.build(); .build();
let fill = PrimitiveStyle::with_fill(Rgb565::WHITE); let fill = PrimitiveStyle::with_fill(Rgb565::WHITE);
let character_style = MonoTextStyle::new(&FONT_6X10, Rgb565::WHITE); let character_style = MonoTextStyle::new(&FONT_10X20, Rgb565::WHITE);
let yoffset = 10; let yoffset = 10;