crismc / rpi_i2c_oled

Python library to enable 128x32 pixel OLED for Raspberry Pi (both 32 and 64bit).
MIT License
16 stars 10 forks source link

[Bug]: Remote I/O Error #9

Open gabriella-martin opened 10 months ago

gabriella-martin commented 10 months ago

Requirements

Current Behavior

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started [13:58:51] INFO: Starting I2C OLED App... /dev/i2c-1 [13:58:51] INFO: /dev/i2c-1 enabled [13:58:51] INFO: I2C access enabled. Proceeding! [13:58:51] INFO: Display Info to OLED [13:58:51] INFO: Running 'python3 display.py -c /data/options.json' Traceback (most recent call last): File "/I2C_OLED/display.py", line 5, in from bin.Config import Config File "/I2C_OLED/bin/Config.py", line 5, in from bin.Screens import *
^^^^^^^^^^^^^^^^^^^^^^^^^ File "/I2C_OLED/bin/Screens.py", line 53, in class BaseScreen: File "/I2C_OLED/bin/Screens.py", line 58, in BaseScreen def init(self, duration, display = Display(), utils = Utils(), config = None): ^^^^^^^^^ File "/I2C_OLED/bin/Screens.py", line 17, in init self.clear() File "/I2C_OLED/bin/Screens.py", line 27, in clear self.display.begin() File "/I2C_OLED/bin/SSD1306.py", line 97, in begin self._initialize() File "/I2C_OLED/bin/SSD1306.py", line 154, in _initialize self.command(SSD1306_DISPLAYOFF) # 0xAE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/I2C_OLED/bin/SSD1306.py", line 89, in command self._bus.write_byte_data(self._address, control, value) OSError: [Errno 121] Remote I/O error s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Expected Behavior

No response

Steps To Reproduce

No response

Context

YAML state

Environment

- Browser: Firefox
- HA Version:11.03
- I2C_OLED: JMDO 96 c

Anything else?

No response

gabriella-martin commented 10 months ago

Could be something I am doing wrong but unsure