Skip to content

Have to run i2cdump before each reading (on Raspi/i2c) #23

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
zithro opened this issue Jun 18, 2019 · 4 comments
Closed

Have to run i2cdump before each reading (on Raspi/i2c) #23

zithro opened this issue Jun 18, 2019 · 4 comments
Assignees

Comments

@zithro
Copy link

zithro commented Jun 18, 2019

Hi, this is using the test script, so the command needs to be :
$ i2cdump -y 1 0x39 >/dev/null 2>&1 && python3 TSL2561-test.py
This way, the sensor works fine, and reacts well to changes in light.
Without the i2cdump poll, I just get the "no lux" error message.
What happens ? ^^

@caternuson caternuson self-assigned this Jun 18, 2019
@caternuson
Copy link
Collaborator

Looks like maybe it just needed a pause after enabling before making the reading. Checkout #24 for possible fix.

@caternuson
Copy link
Collaborator

Please try the 3.2.1 version of the library when it becomes available:
https://github.com/adafruit/Adafruit_CircuitPython_TSL2561/releases/tag/3.2.1

@ladyada
Copy link
Member

ladyada commented Jun 18, 2019

closin' - reopen if still an issue!

@ladyada ladyada closed this as completed Jun 18, 2019
@zithro
Copy link
Author

zithro commented Jun 19, 2019

I also confirm it's working with the time.sleep(1) addition :)
That was quick, thanks !
PS: using a Pi 3 Model B Rev 1.20 (a02082) / Raspbian jessie

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