Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit c93bf6c

Browse files
authored
give uart some time to finish the print()'s
1 parent 478211f commit c93bf6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shields/shield_2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def pretty_wake_reason():
157157
print("button was tapped")
158158
blink(0x100600) # orange
159159
print("put pycoproc to sleep and turn pycom module off for", round(sleep_time_s/60,1), "minutes")
160+
time.sleep(0.1) # give uart some time to finish the print()'s
160161
pycoproc.setup_sleep(sleep_time_s)
161162
pycoproc.go_to_sleep()
162163

0 commit comments

Comments
 (0)