Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/AmbientLightInterrupt/AmbientLightInterrupt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void setup() {
Serial.println(F("-------------------------------------"));

// Initialize interrupt service routine
attachInterrupt(0, interruptRoutine, FALLING);
attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);

// Initialize APDS-9960 (configure I2C and initial values)
if ( apds.init() ) {
Expand Down
6 changes: 3 additions & 3 deletions examples/GestureTest/GestureTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void setup() {
Serial.println(F("--------------------------------"));

// Initialize interrupt service routine
attachInterrupt(0, interruptRoutine, FALLING);
attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);

// Initialize APDS-9960 (configure I2C and initial values)
if ( apds.init() ) {
Expand All @@ -89,10 +89,10 @@ void setup() {

void loop() {
if( isr_flag == 1 ) {
detachInterrupt(0);
detachInterrupt(APDS9960_INT);
handleGesture();
isr_flag = 0;
attachInterrupt(0, interruptRoutine, FALLING);
attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ProximityInterrupt/ProximityInterrupt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void setup() {
Serial.println(F("---------------------------------------"));

// Initialize interrupt service routine
attachInterrupt(0, interruptRoutine, FALLING);
attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);

// Initialize APDS-9960 (configure I2C and initial values)
if ( apds.init() ) {
Expand Down