XIAO BLE Sense - LSM6DS3 INT1 Single Tap Interrupt

Any working code for deep sleep with Ble and is it possible A capacitive sensor act as a power button to turn on/off the device with a few seconds of hold. The device enter to sleep/deep sleep mode when idle and able to be woken up when the USB is plugged in, and a certain sequence of tapping on the capacitive sensor is completed.