minor changes
This commit is contained in:
		
					parent
					
						
							
								15d54cdce3
							
						
					
				
			
			
				commit
				
					
						1a8da07e0e
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -65,10 +65,11 @@ if __name__ == '__main__':
 | 
			
		|||
                continue
 | 
			
		||||
            #if r>127:
 | 
			
		||||
            #    continue #skip bright pixels
 | 
			
		||||
            #r=255-r
 | 
			
		||||
 | 
			
		||||
            #_current_command+='PX %d %d %02x%02x%02x\n' % (i+xv,j+yv,r,g,b) #rgb
 | 
			
		||||
            _current_command+='PX %d %d %02x\n' % (i+xv-width/2,j+yv-height/2,r) #monochrome only red channel
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            _current_command+='PX %d %d %02x%02x%02x\n' % (i+xv-width/2,j+yv-height/2,r,g,b) #rgb
 | 
			
		||||
            #_current_command+='PX %d %d %02x\n' % (i+xv-width/2,j+yv-height/2,r) #monochrome only red channel
 | 
			
		||||
 | 
			
		||||
            if len(_current_command)>=1400: #divide in packets smaller than 1500 byte
 | 
			
		||||
                commandsarray+=[_current_command.encode()] #append packet
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue