Reference   Language | Libraries | Comparison | Changes

ArduinoLowPower

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.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.