From ea7d4678757efeefdd09ffd8bcccc0b8991a9d5d Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Mon, 16 Aug 2021 18:27:13 +0200 Subject: [PATCH] fix typo --- content/tutorials/basic/sleep.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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/)