Sets or displays the sleep mode of the device.

Parameter range

0 - 1

Parameter Description

0

The module is always awake

1

Sleep mode is controlled by the SLEEP_REQ line. For more details, refer to Pin Sleep.

6

MicroPython sleep(with optional pin wake).

For complete details, see MicroPython Sleep.

Default

0