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
{{ message }}
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.
There is a small error in the example scripts when trying to display images. The images are referred to without a path, and the result is that the script will crash when trying to display the referenced image.
For example, IOError: [Errno 2] No such file or directory: 'happycat_oled_32.ppm'
To fix this, I simply edited the buttons.py script at line 154 with an absolute path to the image file.
It was 👍 catImage = Image.open('happycat_oled_64.ppm').convert('1')
Changed to: catImage = Image.open('/home/pi/Adafruit_Python_SSD1306/examples/happycat_oled_64.ppm').convert('1')
now, it works fine.
The text was updated successfully, but these errors were encountered:
There is a small error in the example scripts when trying to display images. The images are referred to without a path, and the result is that the script will crash when trying to display the referenced image.
For example,
IOError: [Errno 2] No such file or directory: 'happycat_oled_32.ppm'
To fix this, I simply edited the buttons.py script at line 154 with an absolute path to the image file.
It was 👍
catImage = Image.open('happycat_oled_64.ppm').convert('1')
Changed to:
catImage = Image.open('/home/pi/Adafruit_Python_SSD1306/examples/happycat_oled_64.ppm').convert('1')
now, it works fine.
The text was updated successfully, but these errors were encountered: