Merge pull request #2 from lysogeny/master
Fix misaligned text elements in second line
This commit is contained in:
commit
870cd0ad0a
@ -10,7 +10,7 @@ use tinybmp::Bmp;
|
|||||||
use core::time;
|
use core::time;
|
||||||
use embedded_graphics::{
|
use embedded_graphics::{
|
||||||
image::Image,
|
image::Image,
|
||||||
mono_font::{iso_8859_1::FONT_6X10, iso_8859_1::FONT_5X8, MonoTextStyle},
|
mono_font::{iso_8859_1::FONT_6X10, iso_8859_1::FONT_5X8, iso_8859_1::FONT_4X6, MonoTextStyle},
|
||||||
pixelcolor::BinaryColor,
|
pixelcolor::BinaryColor,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
text::Text,
|
text::Text,
|
||||||
@ -281,7 +281,7 @@ fn send_package(ipaddress: String,
|
|||||||
Text::new(&straba_res.inbound_station, Point::new(1, 25), text_style_station)
|
Text::new(&straba_res.inbound_station, Point::new(1, 25), text_style_station)
|
||||||
.draw(&mut display)
|
.draw(&mut display)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Text::new(&inbound, Point::new(80, 24), text_style)
|
Text::new(&inbound, Point::new(80, 25), text_style)
|
||||||
.draw(&mut display)
|
.draw(&mut display)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user