One additional note though. The nightingale example is instructive but has room for optimizations:
-
Unused pins should NOT be switched to input and left floating. They should be pulled to a defined level.
-
Disabling serial interface and utilizing the internal 8 MHz RC oscillator instead of the crystal oscillator will decrease power consumption further.
-
If you own an ISP then there is absolutely no reason to use a bootloader unless you need "field upgrade capabilities from serial interface".
Udo