@phpchap wrote:
Hi there, this is my first RPI project and I’m having issues getting the scroll phat working :/
I’m using the hammerless solder kit and i’ve made sure all the connections are tight.
The following code:
#!/usr/bin/env python import scrollphat import math import time import sys i = 0 buf = [0] * 11 scrollphat.set_brightness(20) while True: try: for x in range(0, 11): y = (math.sin((i + (x * 10)) / 10.0) + 1) # Produces range from 0 to 2 y *= 2.5 # Scale to 0 to 5 buf[x] = 1 << int(y) scrollphat.set_buffer(buf) scrollphat.update() time.sleep(0.005) i += 1 except KeyboardInterrupt: scrollphat.clear() sys.exit(-1)
running the above yields:
Traceback (most recent call last): File "test.py", line 3, in <module> import scrollphat File "build/bdist.linux-armv6l/egg/scrollphat/__init__.py", line 20, in <module> File "build/bdist.linux-armv6l/egg/scrollphat/IS31FL3730.py", line 21, in __init__ File "build/bdist.linux-armv6l/egg/scrollphat/IS31FL3730.py", line 62, in set_mode IOError: [Errno 121] Remote I/O error
My scroll phat has i2c addr: 0x74 on the back of the board, also running :
pi@scrollpi:~ $ 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: -- -- -- -- 74 -- -- --
so it looks like it can ‘see’ the board, but not communicate with it…
any ideas would be very welcome…
Posts: 3
Participants: 2