Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with framebuffer-device #23

Open
jason-a69 opened this issue Jan 11, 2021 · 0 comments
Open

Running with framebuffer-device #23

jason-a69 opened this issue Jan 11, 2021 · 0 comments

Comments

@jason-a69
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant