Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6853

AUTOMATION HAT IOError: [Errno 5] Input/output error

$
0
0

@datsun wrote:

Hey all,
I just bought the automation hat and tried to get it to work on my raspi, I installed via the one liner:
curl -sS get.pimoroni.com/automationhat | bash

Once it got everything and rebooted this is what I get.
Now, I have tried this same thing on 2 different pi's now, with 2 different installations. With this same output.
I am starting to wonder if my hat is non functional.

root@raspberrypi:/home/pi/Pimoroni/automationhat/examples# ./relay.py Traceback (most recent call last):
File "./relay.py", line 5, in
import automationhat as autohat
File "/usr/local/lib/python2.7/dist-packages/automationhat/__init__.py", line 3, in
import sn3218
File "/usr/local/lib/python2.7/dist-packages/sn3218.py", line 112, in
enable_leds(0b111111111111111111)
File "/usr/local/lib/python2.7/dist-packages/sn3218.py", line 60, in enable_leds
[enable_mask & 0x3F, (enable_mask >> 6) & 0x3F, (enable_mask >> 12) & 0X3F])
IOError: [Errno 5] Input/output error

I also get this output with the i2c command, but I am not certain I have the right syntax, does this show its not detecting anything? I have no lights on the hat. Not sure if that is normal or what.

root@raspberrypi:/home/pi/Pimoroni/automationhat/examples# 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Thanks in advance.
Datsun.

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6853

Trending Articles