We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8900c9 commit d48abd7Copy full SHA for d48abd7
src/Arduino_ScienceKitCarrier.cpp
@@ -316,9 +316,10 @@ void ScienceKitCarrier::updateAPDS(){
316
}
317
318
if (color_sensor_used==APDS9999_VERSION){
319
- r = apds9999->getRed()>>1;
320
- g = apds9999->getGreen()>>1;
321
- b = apds9999->getBlue()>>1;
+ r = apds9999->getRed();
+ g = apds9999->getGreen();
+ b = apds9999->getBlue();
322
+ c = apds9999->getIR();
323
proximity = 255 - apds9999->getProximity();
324
if (proximity>255){
325
proximity = 0;
0 commit comments