This commit is contained in:
gijsio
2021-08-16 18:27:13 +02:00
committed by GitHub
parent 67d511b11c
commit ea7d467875

View File

@@ -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/)
For the Pysense, Pytrack and Pyscan expansionboards, an additional sleep function is available. You can find out more about that [here](/tutorials/expansionboards/sleep/)