IOError: [Errno 121] Remote I/O error
If you keep getting this error, due to interference or long distance.. This is how I resolved it.
assert(len(cmd) <= 31) while True: try: self.bus.write_i2c_block_data(self.addr, self.cmd_mode, list(cmd)) break except: pass
for i in range(0, len(data), 31): while True: try: self.bus.write_i2c_block_data(self.addr, self.data_mode, list(data[i:i+31])) break except: pass
Hello,
First of all: thank you for this code. Now I have no Error Messages at all. Unfortunately the OLED Display doesn't show any content. At first (without your code) the display worked from time to time, but most of the time there was the Errno 121 Error. Do you have any idea how I can fix this issue? Many thanks in advance and best regards from germany