While my current implementation of an off button 'works' it doesn't seem to preserve the battery much more than a day or so.
Also, I need to figure out how to get the unit into a state that can monitor the buttons for the turn on gesture, I don't think my EnterSTANDBYMode() can do that, it appears to only be able to look for rising edges on the PA0 pin or interrupts.
While my current implementation of an off button 'works' it doesn't seem to preserve the battery much more than a day or so.
Also, I need to figure out how to get the unit into a state that can monitor the buttons for the turn on gesture, I don't think my EnterSTANDBYMode() can do that, it appears to only be able to look for rising edges on the PA0 pin or interrupts.