Arduino Low Power - LowPower.sleep()

Description

Puts the MCU in sleep mode. The sleep mode allows power optimization with a slower wakeup time. Only the chosen peripherals are on.

Syntax

LowPower.sleep();
LowPower.sleep(milliseconds);

Parameters

milliseconds: the number of milliseconds to put the board in sleep mode. If void the sleep mode is used till a wakeup event.