File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ void loop() {
57
57
58
58
interrupt_flag = 0 ;
59
59
APDS.clearLightInterrupt ();
60
- Serial.println (" Flag and interrupt clear " );
60
+ Serial.println (" Flag and interrupt cleared " );
61
61
delay (5000 );
62
62
}
63
63
Original file line number Diff line number Diff line change @@ -440,7 +440,6 @@ int APDS9960::readProximity() {
440
440
441
441
442
442
// Interrupts related functions
443
-
444
443
// Proximity Interrupt
445
444
void APDS9960::enableProximityInterrupt (){
446
445
uint8_t data;
@@ -515,27 +514,22 @@ void APDS9960::setLightLowThreshold(uint16_t newThold){
515
514
Serial.println (newThold);
516
515
setAILTL (newThold);
517
516
setAIHTL (newThold >> 8 );
518
-
519
-
520
517
}
521
518
522
519
void APDS9960::setLightHighThreshold (uint16_t newThold){
523
-
524
520
setAILTL (newThold);
525
521
setAIHTL (newThold >> 8 );
526
522
527
-
528
523
uint8_t final ;
529
524
getENABLE (&final );
530
525
Serial.print (" data: " );
531
526
Serial.println (final ,BIN);
532
527
}
533
528
534
-
535
529
#if defined(APDS9960_INT_PIN)
536
530
APDS9960 APDS (APDS9960_WIRE_INSTANCE, APDS9960_INT_PIN);
537
531
#elif defined(ARDUINO_ARDUINO_NANO33BLE)
538
532
APDS9960 APDS (Wire1, PIN_INT_APDS);
539
533
#else
540
534
APDS9960 APDS (Wire, -1 );
541
- #endif
535
+ #endif
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class APDS9960 {
55
55
56
56
bool setLEDBoost (uint8_t boost);
57
57
58
- // Interrupts
58
+ // Interrupts
59
59
// Proximity interrupt
60
60
void enableProximityInterrupt ();
61
61
void disableProximityInterrupt ();
@@ -168,4 +168,4 @@ class APDS9960 {
168
168
169
169
extern APDS9960 APDS;
170
170
171
- #endif // ARDUINO_APDS9960
171
+ #endif // ARDUINO_APDS9960
You can’t perform that action at this time.
0 commit comments