Skip to content
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

Support interrupts #29

Closed
anecdata opened this issue Oct 8, 2024 · 2 comments · Fixed by #30
Closed

Support interrupts #29

anecdata opened this issue Oct 8, 2024 · 2 comments · Fixed by #30

Comments

@anecdata
Copy link
Member

anecdata commented Oct 8, 2024

The breakout has an INT pin, and the chip supports interrupts with thresholds:
https://ams-osram.com/products/sensors/ambient-light-color-spectral-proximity-sensors/ams-tsl25911-ambient-light-sensor

The Adafruit_CircuitPython_TSL2561 has support for interrupts, though it looks like the register API for the TSL2591 differs somewhat.

@yacobucci
Copy link
Contributor

I wanted interrupts for something I was doing and took a stab at it. It's working on my Raspberry Pi 5 for my case. It's easier to work with when the interrupts are off by default, but since that changes current behavior, could be a point of contention.

#30

@anecdata
Copy link
Member Author

anecdata commented Jan 7, 2025

In the current release, interrupts enabled but with no way to set up any of the interrupt parameters is practically kind of a NOP, so I doubt the change in behavior should be an issue. Thanks for working on this!

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

Successfully merging a pull request may close this issue.

2 participants