diff options
author | Damien George <damien@micropython.org> | 2025-05-23 12:57:20 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-13 16:27:35 +1000 |
commit | 398da22492d9e593f87f0b9ae4fc043f8b2b8a11 (patch) | |
tree | d4c164106d1a2de870a4c065b33b3e81248e14c8 /extmod/asyncio/core.py | |
parent | ef21ade602116421db2734d23320401ac6669773 (diff) | |
download | micropython-398da22492d9e593f87f0b9ae4fc043f8b2b8a11.tar.gz micropython-398da22492d9e593f87f0b9ae4fc043f8b2b8a11.zip |
esp8266/modmachine: Use common machine_time_pulse_us implementation.
Testing shows that for frequencies which the esp8266 can handle -- up to
about 1kHz -- `machine.time_pulse_us()` now gives more accurate results.
Prior to this commit it would measure on average about 1us lower, but now
the average is much closer to the true value. For example a pulse that is
1000us long, it would measure between 998 and 1000us. Now it measures
between 999us and 1001us.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/asyncio/core.py')
0 files changed, 0 insertions, 0 deletions