Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ IMPORTANT: The APDS-9960 can only accept 3.3V!
Resources:
Include Wire.h and SparkFun_APDS-9960.h

When using Wemos uncomment the two marked lines of code (attachInterrupt).

Development environment specifics:
Written in Arduino 1.0.5
Tested with SparkFun Arduino Pro Mini 3.3V
Expand Down Expand Up @@ -70,6 +72,8 @@ void setup() {
Serial.println(F("--------------------------------"));

// Initialize interrupt service routine
// uncomment the next line when using Wemos
//attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);
attachInterrupt(0, interruptRoutine, FALLING);

// Initialize APDS-9960 (configure I2C and initial values)
Expand All @@ -92,6 +96,8 @@ void loop() {
detachInterrupt(0);
handleGesture();
isr_flag = 0;
// uncomment the next line when using Wemos
//attachInterrupt(APDS9960_INT, interruptRoutine, FALLING);
attachInterrupt(0, interruptRoutine, FALLING);
}
}
Expand Down