Please include the following information, in order for us to help you as effectively as possible.
-
What product do you wish to discuss? RAK463
-
What firmware are you using? VSCode/latformIO
-
What firmware version?
-
Computer OS? (MacOS, Linux, Windows) Windows
-
What Computer OS version? Windows 11
-
How often does the problem happen? Always
-
How can we replicate the problem? Yes
-
Provide source code if custom firmware is used or link to example if RAKwireless example code is used.
I read in a ST forum that the Device Register responsable by INT2 it is LIS3DH_CTRL_REG6. The value is defined at he library SparkFunLIS3DH.h. Could I redefine the value using Platformio.ini as the example below? What is the best method to do these configurations?
I found the LIS3DH documentation and there I found the INT1/INT2 registers status behavior control: https://cdn.sparkfun.com/assets/learn_tutorials/5/9/6/LIS3DH_AppNote_DocID_18198rev1.pdf
I am trying to do this avoid, when it is possible, the conflicts in the nRF52840 pins.
Regards,
Cláudio
Blockquote
build_flags =
-D MONITOR_SPEED=115200
-D UPLOAD_SPEED=115200
; LEDs
-D LED_GREEN=35
-D LED_BLUE=36
; calibração das variáveis ambientais
-D SEALEVELPRESSURE_HPA=1010.0
; Desabilitar INT2 no RAK1904 para evitar conflito com RAK5801
; -D LIS3DH_CTRL_REG6=0x25
Blockquote
The library SparkFunLIS3DH.h
Blockquote
//Device Registers
#define LIS3DH_STATUS_REG_AUX 0x07
#define LIS3DH_OUT_ADC1_L 0x08
#define LIS3DH_OUT_ADC1_H 0x09
#define LIS3DH_OUT_ADC2_L 0x0A
#define LIS3DH_OUT_ADC2_H 0x0B
#define LIS3DH_OUT_ADC3_L 0x0C
#define LIS3DH_OUT_ADC3_H 0x0D
#define LIS3DH_INT_COUNTER_REG 0x0E
#define LIS3DH_WHO_AM_I 0x0F
#define LIS3DH_TEMP_CFG_REG 0x1F
#define LIS3DH_CTRL_REG1 0x20
#define LIS3DH_CTRL_REG2 0x21
#define LIS3DH_CTRL_REG3 0x22
#define LIS3DH_CTRL_REG4 0x23
#define LIS3DH_CTRL_REG5 0x24
#define LIS3DH_CTRL_REG6 0x25
#define LIS3DH_REFERENCE 0x26
#define LIS3DH_STATUS_REG2 0x27
#define LIS3DH_OUT_X_L 0x28
#define LIS3DH_OUT_X_H 0x29
#define LIS3DH_OUT_Y_L 0x2A
#define LIS3DH_OUT_Y_H 0x2B
#define LIS3DH_OUT_Z_L 0x2C
#define LIS3DH_OUT_Z_H 0x2D
#define LIS3DH_FIFO_CTRL_REG 0x2E
#define LIS3DH_FIFO_SRC_REG 0x2F
#define LIS3DH_INT1_CFG 0x30
#define LIS3DH_INT1_SRC 0x31
#define LIS3DH_INT1_THS 0x32
#define LIS3DH_INT1_DURATION 0x33
#define LIS3DH_CLICK_CFG 0x38
#define LIS3DH_CLICK_SRC 0x39
#define LIS3DH_CLICK_THS 0x3A
#define LIS3DH_TIME_LIMIT 0x3B
#define LIS3DH_TIME_LATENCY 0x3C
#define LIS3DH_TIME_WINDOW 0x3D
Blockquote