diff --git a/eh18-image.py b/eh18-image.py index 4f9f7b1..a93f51f 100644 --- a/eh18-image.py +++ b/eh18-image.py @@ -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