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() {
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}
You can’t perform that action at this time.
0 commit comments