Browse Source

Use embedded-various-fonts from git

dev/doc
Marc Poulhiès 2 years ago
parent
commit
f8963da904
  1. 3
      Cargo.toml
  2. 5
      src/main.rs

3
Cargo.toml

@ -32,7 +32,8 @@ ufmt = "0.1"
##tm4c-hal = "0.4"
tm4c123x = { path = "../dslite2svd/crates/tm4c123x" }
embedded-junkyardfont = {git = "https://github.com/dkm/embedded-junkyardfont/"}
embedded-various-fonts = { git = "https://github.com/dkm/embedded-various-fonts" }
tm4c-hal = { git = "https://github.com/dkm/tm4c-hal" }
tm4c123x-hal = { git = "https://github.com/dkm/tm4c-hal", features = ["rt"] }

5
src/main.rs

@ -83,8 +83,9 @@ macro_rules! debug_only {
const NUM_LEDS: usize = 8;
const FONT_TIME: embedded_junkyardfont::FontJunkyard = embedded_junkyardfont::FontJunkyard;
//const FONT_TIME: embedded_graphics::fonts::Font24x32 = Font24x32;
const FONT_TIME: embedded_various_fonts::fonts::GNUTypeWriter60Point =
embedded_various_fonts::fonts::GNUTypeWriter60Point {};
const FONT_RIGHT_BAR: embedded_graphics::fonts::Font12x16 = embedded_graphics::fonts::Font12x16;
const SCR_HOUR_X_OFF: i32 = 1;

Loading…
Cancel
Save