fix bug in impl Drop for FrameTracker, for the correctly mapping/unmapping display buffer in app
This commit is contained in:
parent
2cbd237260
commit
73fcb72cbb
6 changed files with 16 additions and 5 deletions
|
@ -108,6 +108,7 @@ impl DrawingBoard {
|
|||
pub fn main() -> i32 {
|
||||
// let fb_ptr = framebuffer() as *mut u8;
|
||||
let mut board = DrawingBoard::new();
|
||||
let _ = board.disp.clear(Rgb888::BLACK).unwrap();
|
||||
for i in 0..20 {
|
||||
board.latest_pos.x += i;
|
||||
board.latest_pos.y += i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue