Put Arduino Nano to sleep and wake by button

Hi, need help here. I want to add sleep and wake function to my nano (attach with oled) using,

" include <avr/sleep.h> "

The concept is set into sleep after 30 seconds without activity on button press (idle).

Then turn it back on after a button is pressed.

You should read this:


and maybe you could get some use of this


which links to

where you can find examples to experiment with.

I hope google service is restored to your internets soon.