automation-hat
automation-hat copied to clipboard
Automation HAT Mini - Source outdated
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
- pip3 install gpiodevice
- enable i2c & spi
- 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