adafruit / Adafruit_CircuitPython_NeoTrellis

CircuitPython library for the Adafruit RGB Trellis
MIT License
8 stars 14 forks source link

Timeout in Adafruit_seesaw when attempting to create NeoTrellis #26

Open andrewsage opened 8 months ago

andrewsage commented 8 months ago

Setup

CircuitPython 8.2.9 RP2040 Stamp

Problem

If a user attempts to create a NeoTrellis object using the following code:

import time
import board
import busio
from adafruit_neotrellis.neotrellis import NeoTrellis

# SDA is GP5
# SCL is GP4
i2c_bus = busio.I2C(board.GP5, board.GP4)

trellis = NeoTrellis(i2c_bus)

The following error is produced:

File "adafruit_neotrellis/neotrellis.py", line 71, in __init__
  File "adafruit_seesaw/keypad.py", line 68, in __init__
  File "adafruit_seesaw/seesaw.py", line 151, in __init__
  File "adafruit_seesaw/seesaw.py", line 496, in read8
  File "adafruit_seesaw/seesaw.py", line 501, in read
  File "adafruit_seesaw/seesaw.py", line 520, in write
OSError: [Errno 116] ETIMEDOUT

Additional Information

The code is taken from the https://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/issues/25#issuecomment-1381255324 which addresses the problem of the current example code not working