File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ def DisplayPILImage(
339
339
display_bmp_cmd = Command .DISPLAY_BITMAP_8INCH
340
340
341
341
self ._send_command (display_bmp_cmd ,
342
- payload = bytearray (int (self .display_width * self .display_width / 64 ).to_bytes (2 )))
342
+ payload = bytearray (int (self .display_width * self .display_width / 64 ).to_bytes (2 , "big" )))
343
343
self ._send_command (Command .SEND_PAYLOAD ,
344
344
payload = bytearray (self ._generate_full_image (image )),
345
345
readsize = 1024 )
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def Reset(self):
89
89
def Clear (self ):
90
90
# HW revision D does not implement a Clear command: display a blank image on the whole screen
91
91
color = 0xFFFF # RGB565 White color
92
- color_bytes = bytearray (color .to_bytes (2 ))
92
+ color_bytes = bytearray (color .to_bytes (2 , "big" ))
93
93
self .SendCommand (cmd = Command .DISPCOLOR , payload = color_bytes )
94
94
95
95
def ScreenOff (self ):
You can’t perform that action at this time.
0 commit comments