Skip to content

Commit d48abd7

Browse files
committed
add: clear IR as clear channel
1 parent b8900c9 commit d48abd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/Arduino_ScienceKitCarrier.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,10 @@ void ScienceKitCarrier::updateAPDS(){
316316
}
317317
}
318318
if (color_sensor_used==APDS9999_VERSION){
319-
r = apds9999->getRed()>>1;
320-
g = apds9999->getGreen()>>1;
321-
b = apds9999->getBlue()>>1;
319+
r = apds9999->getRed();
320+
g = apds9999->getGreen();
321+
b = apds9999->getBlue();
322+
c = apds9999->getIR();
322323
proximity = 255 - apds9999->getProximity();
323324
if (proximity>255){
324325
proximity = 0;

0 commit comments

Comments
 (0)