lib_oled96 icon indicating copy to clipboard operation
lib_oled96 copied to clipboard

IOError: [Errno 121] Remote I/O error

Open ClanHost opened this issue 7 years ago • 1 comments

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

ClanHost avatar Jan 07 '19 06:01 ClanHost

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

BenGore avatar Mar 03 '19 07:03 BenGore