I just uploaded the fix. I've tested it with v003 using updated core and the included Adafruit sleep example. Watchdog.sleep() without parameter will sleep for about 30 sec. You can specify a sleep value in ms. The code will do repeated naps to match the parameter and does allow longer sleeps. To reprogram it's easiest to first power-down using the LinkE.
Thank you showing for your code. Maybe I can use bits to improve this library. I haven't done anything with pin interrupts yet. I'll do some more experiments once I find some more spare time. (I have too many other things to do at the moment...)
because on the sleepmode it's to hard programing again
I know what you mean. The programming pin doesn't work during sleep. The sleep example is the unchanged standard Adafruit example. Because you still need to power off the uC before sleep works, I found it easiest to just use LinkE to power off before programming. During programming it will be switched on automatically and then you need to power off/on again to test the new program.