pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

enhancement - machine.time_pulse_us() #24

Closed pacmac closed 6 years ago

pacmac commented 7 years ago

As the code for this has already been figured out, is there any chance this can be merged into the pycom port ??

https://github.com/micropython/micropython-esp32/blob/esp32/extmod/machine_pulse.c

It works very well and is EXTREMELY useful ?!

http://docs.micropython.org/en/v1.8.7/pyboard/library/machine.html#machine.time_pulse_us

Thanks

robert-hh commented 6 years ago

An equivalent, if no better method has been implemented by pycom.pulses_get(), which will time a trail of pulses. So this can be closed.