Skip to content

ETIMEDOUT error with CircuitPython 7.x #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mousethief opened this issue Dec 1, 2021 · 3 comments
Closed

ETIMEDOUT error with CircuitPython 7.x #12

mousethief opened this issue Dec 1, 2021 · 3 comments
Assignees

Comments

@mousethief
Copy link

mousethief commented Dec 1, 2021

(Referencing Adafruit forum topic https://forums.adafruit.com/viewtopic.php?f=60&t=185282)

  • Arduino board: Feather RP2040 (Adafruit product #4884), QTPy RP2040 (Adafruit product #4900), possibly others.

  • CircuitPython 6.3.0, 7.0.0, 7.1.0-beta1

  • List the steps to reproduce the problem below

Run on CircuitPython 7.x on an RP2040-based board:

# Bug Report Test Code, LTR390 issue with CPy 7.x on RP2040

import board
import time

import adafruit_ltr390

i2c_bus = board.I2C()
sens_light = adafruit_ltr390.LTR390(i2c_bus)

while True:
	data_light_uv = sens_light.uvs
	data_light_light = sens_light.light

	print("UV:  ", data_light_uv, "Ambient Light: ", data_light_light)

	time.sleep(5)

code.py output:
Traceback (most recent call last):
File "code.py", line 10, in
File "adafruit_ltr390.py", line 286, in init
File "adafruit_ltr390.py", line 292, in initialize
File "adafruit_ltr390.py", line 315, in _reset
File "adafruit_register/i2c_bit.py", line 43, in get
OSError: [Errno 116] ETIMEDOUT

CircuitPython 6.3.0 on the RP2040-based board works as expected:

code.py output:
UV: 1 Ambient Light: 157
...

CircuitPython 7.0.0 on a different board (Feather nRF52840 Express) also works as expected.

@dhalbert dhalbert transferred this issue from adafruit/Adafruit_LTR390 Dec 2, 2021
@mousethief
Copy link
Author

Some messing around (physically handling the hardware), I've gotten a 'OSError: [Errno 19] Unsupported operation' (unreliably so far) in place of the ETIMEDOUT. I don't know if that is useful, but it is interesting.

@caternuson
Copy link
Contributor

Is this a dupe of #11 ?

@mousethief
Copy link
Author

Lib version 1.1.3 works (when tested) on Feather RP2040 and Macropad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants