Add interrupt feature#15
Conversation
|
Memory usage change @ 95cbcc6
Click for full report table
Click for full report CSV |
per1234
left a comment
There was a problem hiding this comment.
You can fix the spell check failure by adding the problematic word in all lower case (als) here;
https://github.com/arduino-libraries/Arduino_APDS9960/blob/master/.codespellrc#L4
Co-authored-by: per1234 <accounts@perglass.com>
|
Memory usage change @ bb0a9b4
Click for full report table
Click for full report CSV |
| if (!setGPULSE(0x8F)) return false; // 16us, 16 pulses // default is: 0x40 = 8us, 1 pulse | ||
| if (!setPPULSE(0x8F)) return false; // 16us, 16 pulses // default is: 0x40 = 8us, 1 pulse | ||
| if (!setGestureIntEnable(true)) return false; | ||
| //if (!setGestureIntEnable(true)) return false; |
There was a problem hiding this comment.
this is not fine, if useless remove the cmment otherwise add and fix incompatibility
| /*clearLightInterrupt(); | ||
| clearProximityInterrupt();*/ |
| } | ||
|
|
||
| disableProximity(); | ||
| //disableProximity(); |
| #else | ||
| APDS9960 APDS(Wire, -1); | ||
| #endif | ||
| #endif No newline at end of file |
| data &= 0b01111111; //MSB reserved | ||
| data |= 0b1; //PowerON | ||
| data |= 0b00010000; //ALS |
There was a problem hiding this comment.
no number create macros and give a meanings to each action
| void APDS9960::enableProximityInterrupt(){ | ||
| uint8_t data; | ||
| getENABLE(&data); | ||
| data &= 0b01111111; //MSB reserved |
There was a problem hiding this comment.
no number create macros and give a meanings to each action
| data &= 0b01111111; //MSB reserved | ||
| data |= 0b1; //PowerON | ||
| data &= 0b01011111; //Int prox disable |
There was a problem hiding this comment.
no number create macros and give a meanings to each action
| extern APDS9960 APDS; | ||
|
|
||
| #endif // ARDUINO_APDS9960 | ||
| #endif // ARDUINO_APDS9960 No newline at end of file |
All the changes I requested have been made. Thanks!
|
|
I've added the minimun configuration to enable the interrupt pin