Firstly, an extra big hello, and an huge apology. I recently, and happily, received a Raspberry Pi 4 (4GB) as a gift. I saw the Pimoroni PanioHAT, and as a lover of classical music, I couldn’t resist. Trouble is, I have no coding know’how and I’m completely lost. Please help, if you can.
So, I’ve seated the PianoHAT directly on the GPIO pins.I’m confident that it’s seated firmly, and correctly. I have then followed the installation guidance on the official website (Getting Started with Piano HAT). By doing so, I have oped up Terminal and entered the following code… curl https://get.pimoroni.com/pianohat | bash. It says everything has installed correctly. I’ve then gone into /home/pi/pimoroni/pianohat/examples and clicked on a few .py files. These say ‘Execute’ ‘Execute in terminal’ ‘open’ ‘close’. I have clicked on ‘execute’ or ‘execute in termainl’ nothing happens. When I click on ‘open’ Thonny opens up. I clicked on ‘run’ but I get an error. It reads…
Python 3.9.2 (/usr/bin/python3)
>>> %Run leds.py
Traceback (most recent call last):
** File “/home/pi/Pimoroni/pianohat/examples/leds.py”, line 8, in **
** File “/usr/lib/python3/dist-packages/pianohat.py”, line 85, in auto_leds**
** File “/usr/lib/python3/dist-packages/pianohat.py”, line 194, in setup**
** _piano_ctog = cap1xxx.Cap1188(i2c_addr=0x28, alert_pin=4)**
** File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 253, in init**
** self.i2c = SMBus(i2c_bus)**
FileNotFoundError: [Errno 2] No such file or directory
I have also noticed that non of the LED’s light up.
I’m really sorry, this is probably a very noob question, but I would be grateful for all your help.