We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4acb7b7 commit 69251c2Copy full SHA for 69251c2
lcd/lcd_api.py
@@ -203,6 +203,10 @@ def hal_write_data(self, data):
203
"""
204
raise NotImplementedError
205
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.
210
def hal_sleep_us(self, usecs):
211
"""Sleep for some time (given in microseconds)."""
212
time.sleep_us(usecs) # NOTE this is not part of Standard Python library, specific hal layers will need to override this
0 commit comments