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:

http://www.gammon.com.au/power

and maybe you could get some use of this

https://www.arduino.cc/reference/en/libraries/low-power/

which links to

where you can find examples to experiment with.

I hope google service is restored to your internets soon.

HTH

a7