I was using my i2c OLED perfectly well when seemingly for no reason I started getting the Remote I/O Error when I ran my Python program. For some reason this was fixed by installing i2c tools again. This seemed to work several times (maybe it was just a strange coincidence). Now this doesn't work and I get the same errors. Another strange thing is that the i2c detect -y 1 is still reporting my OLED on 0x3C.
Here is the error code:
Traceback (most recent call last):
File "door_lock_code.py", line 13, in <module>
File "/usr/local/lib/python3.5/dist-packages/Adafruit_SSD1306-1.6.2-py3.5.egg/Adafruit_SSD1306/SSD1306.py", line 182, in display
File "/usr/local/lib/python3.5/dist-packages/Adafruit_GPIO-1.0.3-py3.5.egg/Adafruit_GPIO/I2C.py", line 129, in writeList
File "/usr/local/lib/python3.5/dist-packages/Adafruit_PureIO-0.2.3-py3.5.egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data
OSError: [Errno 121] Remote I/O error
Can anyone help me out?
P.S - I know this is similar to other threads but I think my errors are slightly different.