Working MEMS and SD

We already know the SD card works. MEMS now has support where data
collection is occuring only when the switch is turned on. Done using
two interrupts, one for the GPIO pin for the MEMS int and another by
the I2C interrupt