Not sure if u still check issues on this, but i got the following errors, as they sometimes appear intermittent, as it may freeze after starting new game against a PC, but also sometimes after making 1 move confirmed / ok, then a freeze...here's my code.
And I've tested this with python 2 and python 3 to run it. seems the same.
I am running Buster on Raspberry Pi Zero.....
Waiting for command from the Board
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:92: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine1)
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:101: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine2)
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:109: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine3)
Traceback (most recent call last):
File "StartChessGame.py", line 304, in
gameplayMode = getboard()[1:].lower()
File "StartChessGame.py", line 96, in getboard
btxt = ser.readline().decode('utf-8').rstrip().lower()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Not sure if u still check issues on this, but i got the following errors, as they sometimes appear intermittent, as it may freeze after starting new game against a PC, but also sometimes after making 1 move confirmed / ok, then a freeze...here's my code.
And I've tested this with python 2 and python 3 to run it. seems the same.
I am running Buster on Raspberry Pi Zero.....
Waiting for command from the Board
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:92: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine1)
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:101: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine2)
/home/pi/SmartChess/RaspberryPiCode/printToOLED.py:109: DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.
(font_width, font_height) = font.getsize(textLine3)
Traceback (most recent call last):
File "StartChessGame.py", line 304, in
gameplayMode = getboard()[1:].lower()
File "StartChessGame.py", line 96, in getboard
btxt = ser.readline().decode('utf-8').rstrip().lower()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)