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 32
32
- name: WiFiNINA
33
33
- name: INA2xx
34
34
- name: Arduino_BMI270_BMM150
35
- - name: BSEC Software Library
35
+ - name: bsec2
36
36
- name: Arduino_GroveI2C_Ultrasonic
37
37
- name: OneWireNg
38
+ - name: Arduino_APDS9999
39
+
38
40
39
41
strategy :
40
42
fail-fast : false
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ int ScienceKitCarrier::beginAPDS(){
291
291
else {
292
292
apds9999->enableColorSensor ();
293
293
apds9999->enableProximitySensor ();
294
- apds9999->setGain (APDS9999_GAIN_3X );
294
+ apds9999->setGain (APDS9999_GAIN_18X );
295
295
apds9999->setLSResolution (APDS9999_LS_RES_16B);
296
296
apds9999->setLSRate (APDS9999_LS_RATE_25MS);
297
297
color_sensor_used = APDS9999_VERSION;
@@ -319,10 +319,10 @@ void ScienceKitCarrier::updateAPDS(){
319
319
}
320
320
}
321
321
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 ;
326
326
proximity = 255 - apds9999->getProximity ();
327
327
if (proximity>255 ){
328
328
proximity = 0 ;
You can’t perform that action at this time.
0 commit comments