I am using an ESP8266 Huzzah from Adafruit, and I want to deep sleep then be woken up with a double tap.
I am trying to use a LIS3DH for this, and have had some success.
I am able to connect with i2c, and configure the LIS3DH. I can read accelerometer data, and create an interrupt on double tap. Great.
Next, I connected the LIS3DH Interrupt pin to the RST pin of the ESP. A double tap resets the ESP. Great!
But the LIS3DH interrupt pin stays low until you read the interrupt register, and the real problem for me - when I read that register, the pin goes high, and the ESP then freezes/hangs.
It seems that the ESP sees the interrupt rising and freaks out about it.
Does anyone have an idea what I can do about this, either a software or hardware based fix?
Notes:
- I am running 0.9.6 firmware (a custom cloud build results in a blue flashing LED)
- The LIS3DH datasheet says you can set CTRL_REG5 to 0x00, and the interrupt should clear itself - but it doesn't!
Thanks a lot.
Ben