Set the sleep mode of the device and put the MCU to sleep.
int sleep( const uint8_t mode )
For an overview of which systems are disabled in sleep for the different sleep modes, see the data sheet.
Type: const uint8_t
Sleep mode to use
Type: int
The status of a sleep request
The requested sleep mode was invalid or not available
The operation completed successfully, returned after leaving the sleep