Scroll Hat Mini not working correctly, examples erroring. Input/output error

So I’m on an RPI4, with a phat stack. I’ve tried with and without other hats plugged in, and tried it on different spots on the stack.

I installed via the script, and I2c is enabled (other image in imgur below)

When I run any of the examples in scrollphathd/examples/mini I get the following error.

The buttons.py example does work + detect button inputs correctly, but no output on the led matrix, so the device does seem to be working.

When the other examples fail, it does actually light up, but no activity and the script fails out immediately (other image in imgur below)

I have tried i2cdetect -y 1 and its not showing up (see image in imgur)

Also just tried with a really simple

import scrollphathd

scrollphathd.set_pixel(1, 1, 1)

scrollphathd.show()

…and it gives the same error

See images on Imgur: The magic of the Internet (sorry for imgur link, as a new user I can only attach a single image)

EDIT: Tried it without the phat stack, and on a completely separate RPI4, same issue

If i2cdetect does not detect the hat, that everything else won’t work either. Did you restart the system (probably yes, but just to rule out the obvious)? Did you run id and checked if the user “chris” is in the i2c group?

1 Like

Interesting, I’d turned it off anyways, so booted it back up

  • my user was in the i2c group
  • it was recognising the phat on i2cdetect

Then I ran one of the examples and it broke as before, run i2cdetect again and its gone

If the I2C device detection is flaky, then either the connection is not good or the device is faulty.
If possible, also test without the phat stack to rule out another source of problems.

If that does not help, I suggest that you write to support and ask for a replacement linking to this thread. I think you checked everything that is possible.

1 Like

Yeah same thing without the phat stack, also tried on a completely different RPI4 and the same issue. Thanks for you help, I’ll give support an email later