File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 3232 - name: WiFiNINA
3333 - name: INA2xx
3434 - name: Arduino_BMI270_BMM150
35- - name: BSEC Software Library
35+ - name: bsec2
3636 - name: Arduino_GroveI2C_Ultrasonic
3737 - name: OneWireNg
38+ - name: Arduino_APDS9999
39+
3840
3941 strategy :
4042 fail-fast : false
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ int ScienceKitCarrier::beginAPDS(){
291291 else {
292292 apds9999->enableColorSensor ();
293293 apds9999->enableProximitySensor ();
294- apds9999->setGain (APDS9999_GAIN_3X );
294+ apds9999->setGain (APDS9999_GAIN_18X );
295295 apds9999->setLSResolution (APDS9999_LS_RES_16B);
296296 apds9999->setLSRate (APDS9999_LS_RATE_25MS);
297297 color_sensor_used = APDS9999_VERSION;
@@ -319,10 +319,10 @@ void ScienceKitCarrier::updateAPDS(){
319319 }
320320 }
321321 if (color_sensor_used==APDS9999_VERSION){
322- r = apds9999->getRed ()*4097 /65535.0 ;
323- g = apds9999->getGreen ()*4097 /262144.0 ;
324- b = apds9999->getBlue ()*4097 /131072.0 ;
325- c = apds9999->getIR ()*4097 /4096.0 ;
322+ r = apds9999->getRed ()*5.0 * 4097 /65535.0 ;
323+ g = apds9999->getGreen ()*5.0 * 4097 /262144.0 ;
324+ b = apds9999->getBlue ()*5.0 * 4097 /131072.0 ;
325+ c = apds9999->getIR ()*5.0 * 4097 /4096.0 ;
326326 proximity = 255 - apds9999->getProximity ();
327327 if (proximity>255 ){
328328 proximity = 0 ;
You can’t perform that action at this time.
0 commit comments