We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb7aa3 commit 57d2202Copy full SHA for 57d2202
examples/interrupt_threshold/interrupt_threshold.ino
@@ -74,19 +74,19 @@ void setup() {
74
}
75
76
void loop() {
77
+ Serial.print(F("Prox: "));
78
+ Serial.print(vcnl.readProximity());
79
+
80
if (intFired) {
81
intFired = false;
- uint16_t prox = vcnl.readProximity();
82
uint8_t flags = vcnl.readInterruptFlags();
83
- Serial.print(F("INT! Prox: "));
- Serial.print(prox);
84
-
85
if (flags & VCNL4030_PROX_IF_CLOSE)
86
- Serial.print(F(" -> CLOSE"));
+ Serial.print(F(" *** IRQ CLOSE ***"));
87
if (flags & VCNL4030_PROX_IF_AWAY)
88
- Serial.print(F(" -> AWAY"));
89
90
- Serial.println();
+ Serial.print(F(" *** IRQ AWAY ***"));
91
+ Serial.println();
+ delay(100);
92
0 commit comments