Quote Originally Posted by Acetronics View Post
Hi,
Was not so easy ... but finally got it !!!
all the trick is in the bits setting and testing scheduling ... Always keep in mind the processor will re-start from the beginning.
Have fun ... the ( let's be modest ! ... A ) working listing waits for your first try ...
Other trick : May be you'll have to test greater values capacitors ...
Alain
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...