chrishutchinson / train-departure-screen

Python script to display replica real-time UK railway station departure screens for SSD13xx devices
234 stars 52 forks source link

Running with framebuffer-device #23

Open jason-a69 opened 3 years ago

jason-a69 commented 3 years ago

Hi there,

Took me a while to get my Spotpear LCD working (see https://github.com/rm-hull/luma.lcd/issues/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