Notice of OTA
This commit is contained in:
@@ -137,7 +137,12 @@ fn main() -> ! {
|
|||||||
u16_into_str(tuned_freq as u16, &mut tune_str_buf);
|
u16_into_str(tuned_freq as u16, &mut tune_str_buf);
|
||||||
let tune_str = str::from_utf8(&tune_str_buf).unwrap();
|
let tune_str = str::from_utf8(&tune_str_buf).unwrap();
|
||||||
info!("{}, {}", tune_str, tune_str.len());
|
info!("{}, {}", tune_str, tune_str.len());
|
||||||
gfx_buf.draw_string(20, 40, tune_str);
|
gfx_buf.draw_string(20, 34, tune_str);
|
||||||
|
|
||||||
|
match broadcast_on {
|
||||||
|
true => gfx_buf.draw_string(20, 48, "ON THE AIR"),
|
||||||
|
false => (),
|
||||||
|
}
|
||||||
|
|
||||||
gfx_buf.redraw();
|
gfx_buf.redraw();
|
||||||
sh1106_dev.blit_framebuffer(&mut i2c, &mut gfx_buf);
|
sh1106_dev.blit_framebuffer(&mut i2c, &mut gfx_buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user