Skip to content

Commit 69251c2

Browse files
committed
Added a comment to hal_sleep_us function
1 parent 4acb7b7 commit 69251c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lcd/lcd_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ def hal_write_data(self, data):
203203
"""
204204
raise NotImplementedError
205205

206+
# This is a default implementation of hal_sleep_us which is suitable
207+
# for most micropython implementations. For platforms which don't
208+
# support `time.sleep_us()` they should provide their own implementation
209+
# of hal_sleep_us in their hal layer and it will be used instead.
206210
def hal_sleep_us(self, usecs):
207211
"""Sleep for some time (given in microseconds)."""
208212
time.sleep_us(usecs) # NOTE this is not part of Standard Python library, specific hal layers will need to override this

0 commit comments

Comments
 (0)