@@ -110,7 +110,7 @@ def display_bitmap(epd, filename):
110110 for b in range (8 ):
111111 if (rowdata [col ] & (0x80 >> b ) != 0 and blkpixel == 0 ) or (
112112 rowdata [col ] & (0x80 >> b ) == 0 and blkpixel == 1 ):
113- epd .pixel (col * 8 + b , row , Adafruit_EPD .BLACK )
113+ epd .pixel (col * 8 + b , row , Adafruit_EPD .BLACK )
114114 except (ValueError ) as e :
115115 display_message ("Error: " + e .args [0 ])
116116 except BMPError :
@@ -278,23 +278,23 @@ def run_job(jobfile):
278278 for x2 in range (panelwidth ):
279279 tpanel [x2 ] = tcanvas [x + x2 - panelwidth ]
280280 offset = 0
281- if x >= 22 and (
281+ if ( x >= 22 and
282282 x < (image .width + panelwidth // 2 )
283- and y < image .height
284- and (
285- (image [x - panelwidth // 2 , y ] != 0 and not inv
286- ) or (
287- image [x - panelwidth // 2 , y ] == 0 and inv )
288- )) :
283+ and y < image .height ):
284+ if (
285+ (image [x - panelwidth // 2 , y ] != 0 and not inv
286+ ) or (
287+ image [x - panelwidth // 2 , y ] == 0 and inv )
288+ ):
289289 # offset = 4
290- if job ["imagegrayscale" ] == 0 :
291- offset = job ["imageheight" ]
292- else :
293- offset = (
294- image [x - panelwidth // 2 , y ]
295- * job ["grayscalecolors" ]
296- // 255
297- )
290+ if job ["imagegrayscale" ] == 0 :
291+ offset = job ["imageheight" ]
292+ else :
293+ offset = (
294+ image [x - panelwidth // 2 , y ]
295+ * job ["grayscalecolors" ]
296+ // 255
297+ )
298298 if offset != 0 :
299299 for x2 in range (x , display .width , panelwidth ):
300300 tcanvas [x2 ] = tcanvas [x2 + offset ]
0 commit comments