Posts by livs

    I tested the add-on on libreelec 12.0.1 and it does not work.

    In the logs I find the following errors:

    Error Type: <class 'lgpio.error'>
    Error Contents: 'GPIO not allocated'
    Traceback (most recent call last):
    File "/storage/.kodi/addons/service.oled.cm4/service.py", line 475, in <module>
    monitor = BackgroundService()
    ^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/service.oled.cm4/service.py", line 429, in __init__
    self.oled = Oled(*args)
    ^^^^^^^^^^^
    File "/storage/.kodi/addons/service.oled.cm4/service.py", line 77, in __init__
    serial = spi(gpio_DC=dc, gpio_RST=rst,device=spidevice, port=spiport)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/script.module.luma/lib/luma/core/interface/serial.py", line 305, in __init__
    bitbang.__init__(self, gpio, transfer_size, reset_hold_time, reset_release_time, DC=gpio_DC, RST=gpio_RST)
    File "/storage/.kodi/addons/script.module.luma/lib/luma/core/interface/serial.py", line 193, in __init__
    self._DC = self._configure(kwargs.get("DC"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/script.module.luma/lib/luma/core/interface/serial.py", line 206, in _configure
    self._gpio.setup(pin, self._gpio.OUT)
    File "/storage/.kodi/addons/virtual.rpi-tools/lib/RPi/GPIO/__init__.py", line 704, in setup
    initial = _check(lgpio.gpio_read(_chip, gpio))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/virtual.rpi-tools/lib/lgpio.py", line 903, in gpio_read
    return _u2i(_lgpio._gpio_read(handle&0xffff, gpio))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/storage/.kodi/addons/virtual.rpi-tools/lib/lgpio.py", line 458, in _u2i
    raise error(error_text(v))
    lgpio.error: 'GPIO not allocated'

    To respond to myself, the issue with scrolling speed was because I had 3 lines in LCD.xml, should be 4.

    Oledproc could be in 3 line configuration, and in this case the display will not show last line. Which is fine.

    Hi LuRu,

    I put aside the project for a while waiting for a green oled. Now it comes and installed.

    I am still looking for the right font to be displayed in a 3 line configuration.

    I have some issues with scrolling, as the speed can not be configured, any value selected is the same speed.

    What can I do?

    To add information, I update to LE 11 and it works fine.

    Changing the fonts was a tentative to improve how a particular oled will show information and how much is visible from some distance.

    I did't think about copyrights, as I download the fonts free from internet.

    I understand your concern so to avoid any problem I will keep for myself any changes which may involve copyright issues.

    As Libreelec use fonts under public license, maybe a connection (symlink?) with the font folder is usefull.

    This is what I have now:

    Hi,

    I will add here some results about tests to be available after vacation, if you prefer we can discuss in private.


    I have a spare Pi3+ and make an install.

    First, normal error like CM4:

    Try to solve rotate error and declare value 0, as it should be. This error removed.

    Next I have server.bind(server_address) error, I resolved by remove server_address and replaced with LOCALHOST, PORT declared as it should be.

    After this XBMC LCDproc connect to Oledproc, but there are errors

    I have no idea about what means these.

    For example,

    Code
    ### [XBMC LCDproc] - Connected to LCDd at 127.0.0.1:13666, Protocol version 0.4 - Geometry 16x4 characters (256x128 pixels, 16x32 pixels per character)

    256x128 should be 256x64?

    What else I did, I add to cmdline.txt this:

    Code
    spidev.bufsiz=8192

    I attach the service file that i have now.