I have a sketch, it's appx 95% where i want it to be with one last piece to fix.
Here's the device operation...
-
Unit powers up in sleep mode
-
Main button wakes up and boots into menu
-
Menu functions scroll and can be selected and ran
-
Operations after menu functions have ran are good
-
Long press button for forced sleep mode is working
-
battery monitor display when first powering on is working
-
(This is where I'm looking for help). When the unit is in sleep mode and digital pin 21 (on atmega2560) is pulled low, I would like for it to wake up, display "CHARGING" on the lcd and once the pin is no longer pulled low, for the device to go right back into sleep mode.
I have it now where when the pin is pulled low, the lcd comes on and displays what I want, but after the pin is no longer pulled low, the device continues the wakeup instead of going back to sleep again.
If there's anyone who can help, it would be greatly appreciated.