That’s bizarre. Is it possible the image itself could be corrupted? Seems unlikely! I’d bet you had a separate issue.
OK.
Progress.
Thanks Tomm.
I had cloned the repo so I ran your suggestion:
pi@HAL9000:~/Pimoroni/scroll-phat/examples $ python3 test-all.py
Traceback (most recent call last):
File “test-all.py”, line 10, in
scrollphat.set_brightness(2)
File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/init.py”, line 60, in set_brightness
File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/init.py”, line 26, in _get_controller
File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/IS31FL3730.py”, line 21, in init
File “/usr/local/lib/python3.5/dist-packages/scrollphat-0.0.7-py3.5.egg/scrollphat/IS31FL3730.py”, line 62, in set_mode
OSError: [Errno 121] Remote I/O error
Still errors…but different ones!
To be fair, the Google AIY images are not exactly bombproof.
The last one worked out of the box, but disables the microphone if you did an apt-get update
!
OK. Going to reflash an older image.
I’ll post back here if I have any joy or not.
Thanks!
I’m not sure if the OSError is due to the two separate i2c modules you have running, or an electrical issue.
Assuming you haven’t reflashed yet, what do you see if you run: sudo i2cdetect -y 1
Hi,
Yeah not re-flashed yet but running that gives me:
pi@HAL9000:~/Pimoroni/scroll-phat/examples $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: 60 – – – – – – – – – – – – – – –
70: – – – – – – – –
I’m going to try a different couple of images until everything play nice together.
Quick update:
Just re-flashed aiyprojects-2017-09-11
which I know works with Google.
Getting these errors:
pi@HAL9000:~/Pimoroni/scroll-phat/examples $ python3 test-all.py
Traceback (most recent call last):
File “test-all.py”, line 10, in
scrollphat.set_brightness(2)
File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/init.py”, line 60, in set_brightness
File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/init.py”, line 26, in _get_controller
File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/IS31FL3730.py”, line 21, in init
File “/usr/local/lib/python3.4/dist-packages/scrollphat-0.0.7-py3.4.egg/scrollphat/IS31FL3730.py”, line 62, in set_mode
OSError: [Errno 121] Remote I/O error
I’m going to do a fresh Raspbian install any try to put the AIY stuff on top.
Quick update.
A fresh Raspbian install got it all working.
i also found out that you can’t use GPIO cables to connect a HAT to the Pi !
Cheers all!