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

[FEATURE] Add support for APDS9960 clones #45

Closed

Conversation

nicknugget
Copy link

Add support for more than one chip id and improve chip detection to initialize clones properly.

Adafruit_APDS9960.h:

Use defines to define more than one chip id and make handling of these easier.

Adafruit_APDS9960.cpp:

Improve chip detection part in Adafruit_APDS9960::begin() to handle more than one chip id and allow clones with different id than the genuine chip to be used without a failing initialization.

Should work with every platform and shouldn't break any existing code as the changes are minor ones.

Tested with a Chinese clone of the APDS9960 without problems.

@nicknugget nicknugget closed this Sep 16, 2023
@nicknugget nicknugget deleted the feature/support-clone-chips branch September 16, 2023 14:31
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 this pull request may close these issues.

1 participant