So, I got a Raspberry pi zero 2w, a usb hat hub on top, 3.3V into 3-5V, SDA into SDA, SCL into SCL, and gnd into… well gnd. I have I2C on and while I don’t exactly know what’s wrong, my theory is that bc of my usb hat hub being used, it has a second I2C set to address to, which doesn’t contain the rgbmatrix5x5 while the one that does just isn’t being called upon the example scripts provided with the python rgbmatrix5x5 library. The two sets and addresses in mind are set 1: 0x74 and then set 2, 0x50 0x3a. I also thing that set one is the matrix because when I was screwing with it, out of desperation I kept running “i2cdetect -y 1” fiddling with the matrix which isn’t soldered and with nothing showing, 0x74 finally did and then went away. After more messing around, I got it to stay there and not disconnect. I’ve been savaging everything bit of material I could find that might fix this, and I can’t find it. One thing to note, I have been using python3, I don’t know if that’s important but I know anyone using python was generally using micropython. Pi (see what I did there) the time I post this, it’s late and I’m going to bed soon. I have work in the morning, and I’ll be back… eventually. Hopefully there’s someone in the forms who can help me…
Oh, I also can’t really write code for python… I’m very much a newbie. I can kinda read code, but please don’t throw me a huge pile of techno garble and expect me to understand all of it :3
A link to info on the hat would help. Also the 5x5 RGB LED matrix not being soldered, is going to cause issues. It’s why you get, it’s there, and then it isn’t.
This is the USB hub hat I was talking about. Also I don’t have a soldering iron, so… I’m kinda just making do with what I’ve got. One thing I was thinking might be it was that I couldn’t run curl https://get.pimoroni.com/rgbmatrix5x5 | bash
, sudo pip3 install rgbmatrix5x5
or sudo python3 setup.py install
with it saying that it’s an external process and that it can’t be done. When I’d run these, I’d run them in terminal (oc) in ~/username/
I’m gonna double check I got that last bit about terminal right, I just got home
Edit: it was in ~/home/username I’d run these, the location terminal starts in if you just open in on it’s own
Edit0:
This is the issue I was talking about before
(foobar) eanaruarima447@raspberrypi:~/Downloads/rgbmatrix5x5-python-master/examples $ python3 test.py
Traceback (most recent call last):
File "/home/eanaruarima447/foobar/lib/python3.11/site-packages/rgbmatrix5x5/is31fl3731.py", line 7, in <module>
import smbus
ModuleNotFoundError: No module named 'smbus'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/eanaruarima447/Downloads/rgbmatrix5x5-python-master/examples/test.py", line 3, in <module>
from rgbmatrix5x5 import RGBMatrix5x5
File "/home/eanaruarima447/foobar/lib/python3.11/site-packages/rgbmatrix5x5/__init__.py", line 2, in <module>
from .is31fl3731 import RGBMatrix5x5 # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eanaruarima447/foobar/lib/python3.11/site-packages/rgbmatrix5x5/is31fl3731.py", line 12, in <module>
raise ImportError('This library requires python3-smbus\nInstall with: sudo apt-get install python3-smbus')
ImportError: This library requires python3-smbus
Install with: sudo apt-get install python3-smbus
python3-smbus is installed so idk why this isn’t working
I ran pip3 install subus and then tried it, and it seems to work. I’m glad that it’s figured out thankfully. Ik this is prob obvious stuff I should’ve already done, but… I’m frankly too new and dumb for this. Thank you alphanumeric for your help and the help you gave others. Reading other forms gave… some insight, just to different issues. Buh byeeee
Even those of us that think we know what we are doing get stimmed sometimes. Plus, the virtual environment switch is relatively new. Myself, I’ve hardly messed with it.
Glad to hear you got it all working. Now it’s time to have some fun. I have several RGB LED matrixes around here. But not that one.