We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The Lua RTOS sleep functions allows to put the CPU in sleep mode. These functions are provided as an extension of the Lua os module.
Get the number of boots from the deep sleep state.
Arguments: nothing.
Returns: the number of boots.
Put the board in deep sleep mode for a time specified in the seconds argument. Once the sleep time ends the CPU is reset.
Arguments:
seconds: the number of seconds to sleep Returns: nothing
-- Sleep for 10 seconds os.sleep(10) --deprecated, use cpu.sleep(10)