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] Support a clone with different device id #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicknugget
Copy link

@nicknugget nicknugget commented Sep 17, 2023

Add support for a clone of the APDS9960 with a different device id (0xA8) which otherwise cannot be initialized.

Apparently there are clones of the APDS9960 that use a different device ID than the original. For these, the initialisation then fails.

SparkFun_APDS-9960.h:
Addition of the new ID

SparkFun_APDS-9960.cpp:
Extension of the if-condition in the class sparkFun_APDS9960::init() to take the new ID into account during initialisation.

The changes to the code are minimal and should not create any further side effects.

Add support for a clone of the APDS9960 with a different device
id (0xA8) which otherwise cannot be initialized.
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