cargo fmt
This commit is contained in:
		
							parent
							
								
									972d713cf1
								
							
						
					
					
						commit
						8307354a58
					
				
					 14 changed files with 293 additions and 100 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,10 @@ use std::time::Duration;
 | 
			
		|||
 | 
			
		||||
use clap::Parser;
 | 
			
		||||
 | 
			
		||||
use servicepoint2::{Command, CompressionCode, Connection, Origin, PIXEL_HEIGHT, PIXEL_WIDTH, PixelGrid};
 | 
			
		||||
use servicepoint2::{
 | 
			
		||||
    Command, CompressionCode, Connection, Origin, PixelGrid, PIXEL_HEIGHT,
 | 
			
		||||
    PIXEL_WIDTH,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#[derive(Parser, Debug)]
 | 
			
		||||
struct Cli {
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +27,14 @@ fn main() {
 | 
			
		|||
            pixels.set((y + x_offset) % PIXEL_WIDTH as usize, y, true);
 | 
			
		||||
        }
 | 
			
		||||
        connection
 | 
			
		||||
            .send(Command::BitmapLinearWin(Origin::top_left(), pixels.clone(), CompressionCode::Lzma).into())
 | 
			
		||||
            .send(
 | 
			
		||||
                Command::BitmapLinearWin(
 | 
			
		||||
                    Origin::top_left(),
 | 
			
		||||
                    pixels.clone(),
 | 
			
		||||
                    CompressionCode::Lzma,
 | 
			
		||||
                )
 | 
			
		||||
                .into(),
 | 
			
		||||
            )
 | 
			
		||||
            .unwrap();
 | 
			
		||||
        thread::sleep(Duration::from_millis(14));
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue