adafruit / adafruit/Adafruit_CircuitPython_NeoTrellis
Timeout in Adafruit_seesaw when attempting to create NeoTrellis
- Dominant language
- Python
- Stars
- 10
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
### 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
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the timeout on CircuitPython 8.2.9 with the RP2040 Stamp and the shown I2C pins. Trace NeoTrellis in adafruit_neotrellis/neotrellis.py through adafruit_seesaw/keypad.py and adafruit_seesaw/seesaw.py, starting at the reported constructor and read/write calls; done means creating NeoTrellis no longer raises ETIMEDOUT.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100