The library <avr/power.h> makes it easy to shut down all unneeded hardware of an ATmega controller.
The documentation of this library shows all available instructions and also on which controllers they are working. As I didn’t find this very readable I copied the table and deleted everything that doesn’t apply to the ATmega328P. Continue reading