QUERY · ISSUE
utime.sleep_us() overflow
docs
>>> from utime import sleep_us
>>> sleep_us(24*3600*1000_000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word
It's not documented about any limits on the argument. Either fix in documentation or fix. Fixing is better.
CANDIDATE · PULL REQUEST
tests/io: Add tests for sleep_ms/us(), ticks_ms/us/diff().
Simple smoke tests, mostly for coverage.