diff --git a/content/tutorials/basic/sleep.md b/content/tutorials/basic/sleep.md index 5c541b2..8102de3 100644 --- a/content/tutorials/basic/sleep.md +++ b/content/tutorials/basic/sleep.md @@ -36,8 +36,8 @@ The `machine.sleep()` command will put the controller into a light sleep mode. W import machine import time print("this will be printed before: " + str(time.ticks_ms())) -machine.sleep(1000*10, True) -print("this will be printed after 10 seconds: " str(time.ticks_ms())) +machine.sleep(1000*10, False) +print("this will be printed after 10 seconds: "+ str(time.ticks_ms())) ``` #### Deep sleep @@ -82,4 +82,4 @@ print("This will never be printed") >Note: Using `deepsleep()` will also stop the USB connection. Be wary of that when trying to upload new code to the device! -For the Pysense, Pytrack and Pyscan expansionboards, an additional sleep function is available. You can find out more about that [here](/tutorials/expansionboards/sleep/) \ No newline at end of file +For the Pysense, Pytrack and Pyscan expansionboards, an additional sleep function is available. You can find out more about that [here](/tutorials/expansionboards/sleep/)