Fixed - si5351 needs tweaking
This commit is contained in:
20
src/main.rs
20
src/main.rs
@@ -254,19 +254,19 @@ fn main() -> ! {
|
||||
let tune_str = str::from_utf8(&tune_str_buf[tune_str_buf.len() - len..]).unwrap();
|
||||
// info!("len {}", len);
|
||||
|
||||
gfx_buf.draw_string(64 + 6 * (5 - len as u8), 28, tune_str);
|
||||
// gfx_buf.draw_string(64 + 6 * (5 - len as u8), 28, tune_str);
|
||||
|
||||
gfx_buf.draw_string(20, 40, message);
|
||||
// gfx_buf.draw_string(20, 40, message);
|
||||
|
||||
match input_mode {
|
||||
InputMode::DisplayOnly => (),
|
||||
InputMode::TuneDigit(d) => {
|
||||
let x = 64 + 6 * (4 - d) as u8;
|
||||
gfx_buf.draw_bresenham_line(x, 36, x + 5, 36);
|
||||
}
|
||||
}
|
||||
// match input_mode {
|
||||
// InputMode::DisplayOnly => (),
|
||||
// InputMode::TuneDigit(d) => {
|
||||
// let x = 64 + 6 * (4 - d) as u8;
|
||||
// gfx_buf.draw_bresenham_line(x, 36, x + 5, 36);
|
||||
// }
|
||||
// }
|
||||
|
||||
gfx_buf.redraw();
|
||||
// gfx_buf.redraw();
|
||||
// sh1106_dev.blit_framebuffer(&mut i2c, &mut gfx_buf);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user