I want to use interrupts generated by the LIS3DH to wake up the Electron. But I also want to be able to wake up the Electron with interrupts generated by other sources (other than the LIS3DH) too. For greater clarity, I want to wake up the Electron if it receives interrupt A OR interrupt B.
The documentation states that the LIS3DH interrupts are connected in the AssetTracker to the Electron WKP pin. If this is the case, the WKP pin is both an input (for the Electron) and an output (for the LIS3DH). If this is the case, doesn’t this mean that it is not possible to simultaneously use the A7/WKP pin for any other purpose (for fear of frying the LIS3DH)?
The LIS3DH library accepts an argument for intPin, implying that the interrupt can be directed to pins other than WKP. Is this true? Or is it only possible when using the bare LIS3DH (not as part of the AssetTracker)? Which AssetTracker pins can be used as destinations for interrupts generated by the LIS3DH?
The System.sleep command will accept interrupts on any of the pins D1, D2, D3, D4, A0, A1, A3, A4, A6, A7. Therefore I could send the LIS3DH interrupts to WKP, connect WKP to, for example, A6 via a diode, connect my other interrupt source to A6 via another diode, and tell System.sleep to wake the Electron on interrupts received on A6. Should this work? Or is there a simpler way to do it?