Skip to content

Commit 85fc938

Browse files
committed
take out interrupts
1 parent 7c66c14 commit 85fc938

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Arduino_VCNL4200_simpletest/Arduino_VCNL4200_simpletest.ino

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ void setup() {
2525
vcnl4200.setALSshutdown(false);
2626
vcnl4200.setALSIntegrationTime(VCNL4200_ALS_IT_100MS);
2727
vcnl4200.setALSPersistence(VCNL4200_ALS_PERS_2);
28-
vcnl4200.setALSthresholdLow(100);
29-
vcnl4200.setALSthresholdHigh(20000);
30-
vcnl4200.setInterrupt(true, false); // activate int on ALS chan
3128

3229
vcnl4200.setProxShutdown(false);
3330
vcnl4200.setProxHD(false);
@@ -47,18 +44,5 @@ void loop() {
4744
Serial.print(", White Data: ");
4845
Serial.println(whiteData);
4946

50-
uint8_t flags = vcnl4200.getInterruptFlags();
51-
if (flags != 0 && flags != 0xFF) {
52-
Serial.print("Interrupt flags: 0x");
53-
Serial.println(flags, HEX);
54-
55-
if (flags & VCNL4200_INTFLAG_ALS_HIGH) {
56-
Serial.println("ALS high threshold interrupt triggered.");
57-
}
58-
if (flags & VCNL4200_INTFLAG_ALS_LOW) {
59-
Serial.println("ALS low threshold interrupt triggered.");
60-
}
61-
}
62-
6347
delay(100);
6448
}

0 commit comments

Comments
 (0)