Skip to content

Conversation

@Jim-23
Copy link

@Jim-23 Jim-23 commented Mar 12, 2025

In this version I added a new ID that the library recognise (for some kind of cheap chinese sensor) and I also added support for Wire1 so you can create 2 instances like this:

#include <Wire.h>
#include <SparkFun_APDS9960.h>

SparkFun_APDS9960 s1(Wire);   // First sensor on Wire (SDA/SCL)
SparkFun_APDS9960 s2(Wire1);  // Second sensor on Wire1 (SDA1/SCL1)

In this version I added a new ID that the library recognise (for some kind of cheap chinese sensor) and I also Added support for Wire1 so you can create 2 instances like this:
SparkFun_APDS9960 s1(Wire);   // First sensor on Wire (SDA/SCL)
SparkFun_APDS9960 s2(Wire1);  // Second sensor on Wire1 (SDA1/SCL1)
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