File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Arduino_VCNL4200_simpletest Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ void setup() {
25
25
vcnl4200.setALSshutdown (false );
26
26
vcnl4200.setALSIntegrationTime (VCNL4200_ALS_IT_100MS);
27
27
vcnl4200.setALSPersistence (VCNL4200_ALS_PERS_2);
28
- vcnl4200.setALSthresholdLow (100 );
29
- vcnl4200.setALSthresholdHigh (20000 );
30
- vcnl4200.setInterrupt (true , false ); // activate int on ALS chan
31
28
32
29
vcnl4200.setProxShutdown (false );
33
30
vcnl4200.setProxHD (false );
@@ -47,18 +44,5 @@ void loop() {
47
44
Serial.print (" , White Data: " );
48
45
Serial.println (whiteData);
49
46
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
-
63
47
delay (100 );
64
48
}
You can’t perform that action at this time.
0 commit comments