Weird. Also not sure what was happening. But at least it seems to be working now. You may run into other issues as you proceed. When this happens, the "traceback" that gets printed is your friend. Although it can be a bit of a wall of text when first encountering it:
Code: Select all
Traceback (most recent call last):
File "code.py", line 49, in <module>
File "adafruit_display_text/label.py", line 86, in __init__
File "adafruit_display_text/__init__.py", line 240, in __init__
File "adafruit_display_text/__init__.py", line 261, in _get_ascent_descent
File "adafruit_bitmap_font/bdf.py", line 75, in ascent
OSError: [Errno 22] Invalid argument
For the above example, line 49 in your code.py would be the first place to look. The actual error is on line 75 in adafruit_bitmap_font/bdf.py, but it could be that something was done wrong in code.py to cause this.