fix ch9 && remove some warnings

This commit is contained in:
Yifan Wu 2023-03-29 22:45:49 +08:00
parent 1a71b071f4
commit cd2e97b840
3 changed files with 2 additions and 15 deletions

View file

@ -58,8 +58,8 @@ impl DrawingBoard {
pub fn main() -> i32 {
let mut board = DrawingBoard::new();
let _ = board.disp.clear(Rgb888::BLACK).unwrap();
for i in 0..5 {
board.latest_pos.x += (RECT_SIZE as i32 + 20);
for _ in 0..5 {
board.latest_pos.x += RECT_SIZE as i32 + 20;
//board.latest_pos.y += i;
board.paint();
}