Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

PATCH: c-inno demo variation

This commit is contained in:
Jannik Beyerstedt 2026-09-25 15:51:33 +02:00
commit c70c01c217
3 changed files with 27 additions and 0 deletions

View file

@ -561,6 +561,14 @@ where
// clear whole display and draw text
self.clear()?;
text::Text::with_alignment(
"consider\ninnovation",
geometry::Point::new(i32::from(self.size.width) / 2, 40 + self.size.offset_top),
Self::MID_TEXT_STYLE,
text::Alignment::Center,
)
.draw(&mut self.target)?;
text::Text::with_alignment(
"Waiting\nfor DENM...",
geometry::Point::new(i32::from(self.size.width) / 2, 130 + self.size.offset_top),
@ -684,6 +692,13 @@ where
)
.draw(&mut self.target)?;
} else {
text::Text::with_alignment(
"consider\ninnovation",
geometry::Point::new(centerline, 40 + self.size.offset_top),
Self::MID_TEXT_STYLE,
text::Alignment::Center,
)
.draw(&mut self.target)?;
text::Text::with_alignment(
"C-ITS Companion",
geometry::Point::new(centerline, 130 + self.size.offset_top),