GithubHelp home page GithubHelp logo

papertty-init's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ton-an

papertty-init's Issues

Issues getting up and running on RPi5

Hi there,

I'm having some issues getting running on a RPi5 with 3.7in waveshare display, when I run startpapertty.sh I get these errors:

gpiozero found - using that instead of RPi.GPIO
Setting spacing to 0.
/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/devices.py:295: PinFactoryFallback: Falling back from lgpio: No module named 'lgpio'
  warnings.warn(
Traceback (most recent call last):
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/pins/pi.py", line 408, in pin
    pin = self.pins[info]
          ~~~~~~~~~^^^^^^
KeyError: PinInfo(number=11, name='GPIO17', names=frozenset({'BCM17', 17, 'BOARD11', 'WPI0', '17', 'GPIO17', 'J8:11'}), pull='', row=6, col=1, interfaces=frozenset({'', 'dpi', 'spi', 'gpio', 'uart'}))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/drivers/drivers_base.py", line 121, in setup
    GPIO.pins[str(pin)] = OutputDevice(pin)
                          ^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/devices.py", line 103, in __call__
    self = super().__call__(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/output_devices.py", line 74, in __init__
    super().__init__(pin, pin_factory=pin_factory)
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/mixins.py", line 75, in __init__
    super().__init__(*args, **kwargs)
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/devices.py", line 549, in __init__
    pin = self.pin_factory.pin(pin)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/pins/pi.py", line 410, in pin
    pin = self.pin_class(self, info)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/gpiozero/pins/rpigpio.py", line 101, in __init__
    GPIO.setup(self._number, GPIO.IN, self.GPIO_PULL_UPS[self._pull])
RuntimeError: Cannot determine SOC peripheral base address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/joe/.local/share/papertty-init_venv/bin/papertty", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/papertty.py", line 1344, in terminal
    ptty = settings.get_init_tty()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/papertty.py", line 1059, in get_init_tty
    tty.init_display()
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/papertty.py", line 249, in init_display
    self.driver.init(partial=self.partial, vcom=self.vcom, enable_a2=self.enable_a2, enable_1bpp=self.enable_1bpp, mhz=self.mhz)
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/drivers/drivers_full.py", line 342, in init
    if self.epd_init() != 0:
       ^^^^^^^^^^^^^^^
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/drivers/drivers_base.py", line 308, in epd_init
    GPIO.setup(self.RST_PIN, GPIO.OUT)
  File "/home/joe/.local/share/papertty-init_venv/lib/python3.11/site-packages/papertty/drivers/drivers_base.py", line 127, in setup
    rpiGPIO.setup(pin, rpiGPIO.OUT)
RuntimeError: Cannot determine SOC peripheral base address

Looks like it can't find lgpio? Let me know if this is a common issue, otherwise I'll start digging

Failed to init gpiozero spi device

Hello!

I am trying to get papertty-init to run on my Pi4,. I am using a fresh install of Raspberry Pi OS Lite and this e-ink display. I have ran papertty-init cli with the following settings:

Your settings are as follows:
PaperTTY version: forked
Library: RPi.GPIO
Automatic login: enabled
Panel/driver: EPD7in5v2

papertty-init runs and reports the installation has finished. When I reboot the screen does not work, and if I manually run bash startpapertty.sh it says

gpiozero not found - defaulting to RPi.GPIO
Setting spacing to 0.
Failed to init gpiozero spi device

and freezes. My /boot/firmware/config.txt does have

#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

and I have rebooted multiple times, so I believe SPI is working. Any guidance on how to fix this?

What to choose for 2.13 inch V4 display?

I tried to follow joukos guides choosing V2 and didint manage to replicate any of the expected behavior, also impossible to install via suggested poetry method, failed to run any test, multiple strange errors was occuring and i cant find any info to trobleshoot my case. also his documentation is really a mess and probably i just got overfluded. I gave up on his guide. Lost a TON of time.
Then i reflashed clean raspbian image and installed via your script choosing v2 and got black screen, with some writings but very slow update and i dont think i can rotate the screen or change the size of characters
What to do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.