Skip to content
Jaume Olivé Petrus edited this page Aug 1, 2017 · 6 revisions

os.sleep(seconds)

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)

Clone this wiki locally