-
Notifications
You must be signed in to change notification settings - Fork 227
Sleep
Jaume Olivé Petrus edited this page Aug 1, 2017
·
6 revisions
The Lua RTOS sleep functions allows to put the CPU in sleep mode. This functions are provided as an extension of the Lua os module.
Put the board in 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)