Hi! I can’t seem to get the 1.8 4-digit 7-segment display to work, I get these errors :
Traceback (most recent call last):
File “/home/pi/ai-lab-kit/python/1.8_4-Digit.py”, line 7, in
SDI = Pin(17,mode=Mode.OUT) # Serial Data Input
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/fusion_hat/pin.py”, line 169, in init
self.setup(mode, pull, active_state, bounce_time)
File “/usr/local/lib/python3.11/dist-packages/fusion_hat/pin.py”, line 207, in setup
GPIO.setup(self._pin_num, self._mode.value, pull_up_down=self._pull.value)
RuntimeError: Cannot determine SOC peripheral base address
I can get the circuit to work with the Pi5 only (without the Fusion Hat) So it’s not my circuit wiring that’s at fault. Has anybody got it to work with the Fusion Hat?
EDIT: Is it possible that installing the neopixel library with :
(sudo pip3 install adafruit-circuitpython-neopixel-spi --break) in 1.9 NeoPixel LED Strip exercise
broke the dependencies, because I ran the preceding exercises and they give the same error message when using GPIO17, GPIO4’,GPIO24 etc, but when not using the GPIOs like for the servo or the RGB LED the scripts work.
Another question: Can you run a script without the Fusion Hat being involved? Like just connecting the power to the Pi5 not the Hat?
2nd EDIT I just now, made another micro SD card with the Fusion Hat installation and the error message did not appear. So maybe it would be wise and professional to tell or instruct your users either to not install the neopixel library or to do it in a virtual environment.