jimbolaya Posted July 30 Posted July 30 I've been trying to get the sys-oled script working in Trixie, but I'm pretty out of my depth here. I started with https://github.com/helios-4/sys-oled.git and https://github.com/rpardini/sys-oled-hc4.git /usr/bin/python3 /usr/local/bin/sys-oled --display sh1106 --i2c-port 0 --rotate 2 Traceback (most recent call last): File "/usr/local/bin/sys-oled", line 140, in <module> device = get_device() File "/usr/local/bin/sys-oled", line 56, in get_device device = cmdline.create_device(args) File "/usr/lib/python3/dist-packages/luma/core/cmdline.py", line 241, in create_device device = Device(serial_interface=interface(), **params) File "/usr/lib/python3/dist-packages/luma/oled/device/__init__.py", line 75, in __init__ self.command( ~~~~~~~~~~~~^ self._const.DISPLAYOFF, ^^^^^^^^^^^^^^^^^^^^^^^ ...<11 lines>... self._const.SETVCOMDETECT, 0x20, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self._const.CHARGEPUMP, 0x14) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/luma/core/device.py", line 48, in command self._serial_interface.command(*cmd) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/lib/python3/dist-packages/luma/core/interface/serial.py", line 93, in command self._bus.write_i2c_block_data(self._addr, self._cmd_mode, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ list(cmd)) ^^^^^^^^^^ File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 643, in write_i2c_block_data ioctl(self.fd, I2C_SMBUS, msg) ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 6] No such device or address The script wants to compile luma.core on it's own and Trixie throws up some walls to that. I was hoping to use the system libraries, so I installed python3-luma.core and python3-luma.oled. I'm not sure if it's better to override Trixie and just install the luma.core from the script. Does anyone have any experience with this? Will I need to redo this with a Python venv? 0 Quote
FredK Posted July 31 Posted July 31 @jimbolaya IIRC it is sufficient to use the latest Helios4 image (https://dl.armbian.com/helios4/Trixie_current_minimal). OLED support is available. 0 Quote
jimbolaya Posted Saturday at 07:11 PM Author Posted Saturday at 07:11 PM That's what I'm using. > OLED support is available. I'm not sure what this means. There doesn't appear to be a package or any software installed for it. Do you have a place for me to look? Unfortunately, the answer for was really not very helpful. If I get it working, I'll post what I learn here, but I was unable to find any notes on that particularly on the forums or the Helios4 page. Thank you for your time. James 0 Quote
FredK Posted Monday at 07:16 AM Posted Monday at 07:16 AM @jimbolaya Did you use the informations at https://wiki.kobol.io/helios4/i2c/ ? 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.