You know...I was thinking...
In this type of project, there's nothing that says the PIC has to turn itself completely off right away.
Why can't it stay running for, say 10 seconds, after the LED is powered off.
So, the process looks like this:
Initial power on with an initial mode...
LED lit, PIC waiting...
button pressed, LED off, PIC still waiting...
If one second passes without a button press, the PIC shuts itself off.
If a button press happen inside of one second, the mode changes and the 1 second timer is reset.
Requires a bit more thought with the single button power on/off circuit, but that's easy...
Bookmarks