From 1a8da07e0eec8e5bf45a66b27f560549b38ac52a Mon Sep 17 00:00:00 2001 From: Fisch Date: Sun, 1 Apr 2018 00:52:08 +0200 Subject: [PATCH] minor changes --- eh18-image.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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