Skip to content

Commit 8bb2528

Browse files
committed
fix: imported library on ci
1 parent f1bd138 commit 8bb2528

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/compile-examples.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
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

src/Arduino_ScienceKitCarrier.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)