automation-hat icon indicating copy to clipboard operation
automation-hat copied to clipboard

Automation HAT Mini - Source outdated

Open TheMarrt opened this issue 1 year ago • 1 comments

HAT Mini was not working after install instructions.

These steps were needed to get the IO and the relay running. I still can't get the display to work

  1. pip3 install gpiodevice
  2. enable i2c & spi
  3. fix some changes in display initialization https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/15

this is how far i got. I removed the display stuff for now so i can at least operate the relay. these are the error messages:

Traceback (most recent call last):
  File "/home/ffu/Pimoroni/automationhat/examples/hat-mini/output-mod.py", line 49, in <module>
    disp = st7735.ST7735(
  File "/usr/local/lib/python3.9/dist-packages/st7735/__init__.py", line 175, in __init__
    self._dc = gpiodevice.get_pin(dc, "st7735-dc", OUTL)
  File "/home/ffu/.local/lib/python3.9/site-packages/gpiodevice/__init__.py", line 155, in get_pin
    chip = find_chip_by_pins(pin)
  File "/home/ffu/.local/lib/python3.9/site-packages/gpiodevice/errors.py", line 45, in wrapper
    errors.append(next(i))
  File "/home/ffu/.local/lib/python3.9/site-packages/gpiodevice/__init__.py", line 123, in find_chip_by_pins
    offset = chip.line_offset_from_id(pin_id)
  File "/home/ffu/.local/lib/python3.9/site-packages/gpiod/chip.py", line 144, in line_offset_from_id
    raise ValueError("line offset of out range")
ValueError: line offset of out range

TheMarrt avatar Apr 27 '24 01:04 TheMarrt

Might be worth giving the install another try - we've merged in a bunch of changes to this library over the last week.

Updated installation instructions can be found here and here.

Let us know if you're still having trouble!

helgibbons avatar May 07 '24 13:05 helgibbons