diff -r 64028e178ff1 -r b3e96bbe4ce4 esp-idf-lib/components/apds9930/apds9930.h --- a/esp-idf-lib/components/apds9930/apds9930.h Tue Apr 04 20:57:49 2023 +0200 +++ b/esp-idf-lib/components/apds9930/apds9930.h Wed Apr 05 20:00:26 2023 +0200 @@ -47,6 +47,24 @@ #define APDS9930_AGAIN_16X 2 #define APDS9930_AGAIN_120X 3 +/* Default values */ +#define APDS9930_DEFAULT_ATIME 0xED +#define APDS9930_DEFAULT_WTIME 0xFF +#define APDS9930_DEFAULT_PTIME 0xFF +#define APDS9930_DEFAULT_PPULSE 0x08 +#define APDS9930_DEFAULT_POFFSET 0 // 0 offset +#define APDS9930_DEFAULT_CONFIG 0 +#define APDS9930_DEFAULT_PDRIVE APDS9930_LED_DRIVE_100MA +#define APDS9930_DEFAULT_PDIODE 2 +#define APDS9930_DEFAULT_PGAIN APDS9930_PGAIN_8X +#define APDS9930_DEFAULT_AGAIN APDS9930_AGAIN_1X +#define APDS9930_DEFAULT_PILT 0 // Low proximity threshold +#define APDS9930_DEFAULT_PIHT 50 // High proximity threshold +#define APDS9930_DEFAULT_AILT 0xFFFF // Force interrupt for calibration +#define APDS9930_DEFAULT_AIHT 0 +#define APDS9930_DEFAULT_PERS 0x22 // 2 consecutive prox or ALS for int. + + /** * Device descriptor */