Skip to content

Commit 71fd0c4

Browse files
committed
Beautfied code
1 parent 95cbcc6 commit 71fd0c4

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

examples/InterruptLight/InterruptLight.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void loop() {
5757

5858
interrupt_flag = 0;
5959
APDS.clearLightInterrupt();
60-
Serial.println("Flag and interrupt clear");
60+
Serial.println("Flag and interrupt cleared");
6161
delay(5000);
6262
}
6363

src/Arduino_APDS9960.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ int APDS9960::readProximity() {
440440

441441

442442
// Interrupts related functions
443-
444443
// Proximity Interrupt
445444
void APDS9960::enableProximityInterrupt(){
446445
uint8_t data;
@@ -515,27 +514,22 @@ void APDS9960::setLightLowThreshold(uint16_t newThold){
515514
Serial.println(newThold);
516515
setAILTL(newThold);
517516
setAIHTL(newThold >> 8);
518-
519-
520517
}
521518

522519
void APDS9960::setLightHighThreshold(uint16_t newThold){
523-
524520
setAILTL(newThold);
525521
setAIHTL(newThold >> 8);
526522

527-
528523
uint8_t final;
529524
getENABLE(&final);
530525
Serial.print("data: ");
531526
Serial.println(final,BIN);
532527
}
533528

534-
535529
#if defined(APDS9960_INT_PIN)
536530
APDS9960 APDS(APDS9960_WIRE_INSTANCE, APDS9960_INT_PIN);
537531
#elif defined(ARDUINO_ARDUINO_NANO33BLE)
538532
APDS9960 APDS(Wire1, PIN_INT_APDS);
539533
#else
540534
APDS9960 APDS(Wire, -1);
541-
#endif
535+
#endif

src/Arduino_APDS9960.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class APDS9960 {
5555

5656
bool setLEDBoost(uint8_t boost);
5757

58-
//Interrupts
58+
// Interrupts
5959
// Proximity interrupt
6060
void enableProximityInterrupt();
6161
void disableProximityInterrupt();
@@ -168,4 +168,4 @@ class APDS9960 {
168168

169169
extern APDS9960 APDS;
170170

171-
#endif // ARDUINO_APDS9960
171+
#endif // ARDUINO_APDS9960

0 commit comments

Comments
 (0)