Skip to content

Running with framebuffer-device #23

Description

@jason-a69

Hi there,

Took me a while to get my Spotpear LCD working (see rm-hull/luma.lcd#139) but I got there in the end.
I am trying to run with the following parameters

python3 src/main.py --interface spi --gpio-reset 25 --gpio-data-command 24 --display linux_framebuffer --width 320 --height 240 --framebuffer-device /dev/fb1

And the script is falling over here

Traceback (most recent call last):
  File "src/main.py", line 263, in <module>
    virtual.refresh()
  File "/home/pi/.local/lib/python3.7/site-packages/luma/core/virtual.py", line 123, in refresh
    im = self._backing_image.crop(box=self._crop_box())
  File "/home/pi/.local/lib/python3.7/site-packages/luma/core/virtual.py", line 135, in _crop_box
    assert(0 <= left <= right <= self.width)
AssertionError

Any clues please? I have just done a fresh install of Raspian and updated all the luma packages to their latest versions.

Many thanks

Jason

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions