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

give uart some time to finish the print()'s #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shields/shield_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def pretty_wake_reason():
print("button was tapped")
blink(0x100600) # orange
print("put pycoproc to sleep and turn pycom module off for", round(sleep_time_s/60,1), "minutes")
time.sleep(0.1) # give uart some time to finish the print()'s
pycoproc.setup_sleep(sleep_time_s)
pycoproc.go_to_sleep()

Expand Down