@Vitesze, for deep sleep, you can’t specify a wakeup pin. The only way to wake the Electron from deep sleep is a rising edge on the WKP pin or a timeout. The example you referred to uses a “stop” sleeping mode which can be awakened from any pin.
@Vitesze, when specifying deep sleep you only specify the timeout. The WKP pin and RISING are assumed since the STM32 is designed that way. The correct format is (check out the docs!):
Thanks, Ill have a look at it tomorrow. Im just unsure how to attach the accelerometer output to WKP. I remember in the LIS3DH code it said something like LIS3DH (SPI, D2, WKP), but for the ADXL I cant add more than 2 arguments there