Jump to content

Recommended Posts

Posted

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?

Posted

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

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines