SPOILER ALERT! I have never been so disappointed during this opening of the PiHut Maker Advent Calendar when I couldn’t get the OLED screen to work.
Watch the very quick video below and then read on for more thoughts.
I have no idea why this didn’t work. I tried several things to try and coax it in to life stripping it right back to basics. The project includes a switch and the potentiometer but I removed all that just to try and get the screen to work. However, no matter what I did I just always ended up with this error:
Traceback (most recent call last):
File "", line 13, in
File "ssd1306.py", line 110, in init
File "ssd1306.py", line 36, in init
File "ssd1306.py", line 71, in init_display
File "ssd1306.py", line 115, in write_cmd
OSError: [Errno 5] EIO
I am not sure where to go from here as I don’t know where the problem lies. It could be in the wiring (although I have triple checked it). It could be in the software although I am a master at cut and paste. It could, of course, also be a duff component for which I have no way of telling. I am tempted to contact PiHut support to see if they can help but right now I am a little bit disapointed.