mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 16:06:43 +01:00
fix typo
This commit is contained in:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user