Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SparkFun APDS9960 RGB and Gesture Sensor
version=1.4.3
version=1.4.4
author=SparkFun Electronics <techsupport@sparkfun.com>
maintainer=SparkFun Electronics <sparkfun.com>
sentence=Library for the Avago APDS-9960 sensor
Expand Down
2 changes: 1 addition & 1 deletion src/SparkFun_APDS9960.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool SparkFun_APDS9960::init()
if( !wireReadDataByte(APDS9960_ID, id) ) {
return false;
}
if( !(id == APDS9960_ID_1 || id == APDS9960_ID_2) ) {
if( !(id == APDS9960_ID_1 || id == APDS9960_ID_2 || id == APDS9960_ID_3) ) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/SparkFun_APDS9960.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/* Acceptable device IDs */
#define APDS9960_ID_1 0xAB
#define APDS9960_ID_2 0x9C
#define APDS9960_ID_3 0xA8 // cheap chinese clone of APDS9660 -> Can only handle gains with factor 1x!

/* Misc parameters */
#define FIFO_PAUSE_TIME 30 // Wait period (ms) between FIFO reads
Expand Down