You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
st7565.Glcd#is_off_grid has an error in the error handling. it raises an error if it prints off screen.
the print function is implemented incorrectly (call format() on the string, not on the result of print).
error:
y-coordinate: {0} above maximum of {1}.
Traceback (most recent call last):
File "/scratch.py", line 30, in <module>
is_off_grid(100, 50, 10, 50)
File "/scratch.py", line 26, in is_off_grid
print('y-coordinate: {0} above maximum of {1}.').format(ymax, LCD_HEIGHT - 1)
AttributeError: 'NoneType' object has no attribute 'format'
The text was updated successfully, but these errors were encountered:
st7565.Glcd#is_off_grid has an error in the error handling. it raises an error if it prints off screen.
the print function is implemented incorrectly (call format() on the string, not on the result of print).
error:
The text was updated successfully, but these errors were encountered: