reformat with max width
This commit is contained in:
parent
0a3f400e92
commit
362426c758
13 changed files with 225 additions and 122 deletions
|
@ -1,8 +1,10 @@
|
|||
use std::thread;
|
||||
use std::time::Duration;
|
||||
|
||||
use clap::Parser;
|
||||
use servicepoint2::{Connection, Origin, PIXEL_HEIGHT, PIXEL_WIDTH, PixelGrid};
|
||||
|
||||
use servicepoint2::Command::BitmapLinearWin;
|
||||
use servicepoint2::{Connection, Origin, PixelGrid, PIXEL_HEIGHT, PIXEL_WIDTH};
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
struct Cli {
|
||||
|
@ -24,7 +26,9 @@ fn main() {
|
|||
for y in 0..PIXEL_HEIGHT as usize {
|
||||
pixels.set((y + x_offset) % PIXEL_WIDTH as usize, y, true);
|
||||
}
|
||||
connection.send(BitmapLinearWin(Origin::top_left(), pixels.clone())).unwrap();
|
||||
connection
|
||||
.send(BitmapLinearWin(Origin::top_left(), pixels.clone()))
|
||||
.unwrap();
|
||||
thread::sleep(Duration::from_millis(14));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue