Sparkfun APDS-9960 gesturetest on Avery: compile error

@domike

The problem is that one parameter is of type uint8_t and the other int

In the file SparkFun_APDS9960.cpp you need to look for the above line and change it to

Wire.requestFrom((int) APDS9960_I2C_ADDR, (int) len);

The (int) forces the compiler to use the specified datatype int for both parameters

1 Like