summaryrefslogtreecommitdiff
path: root/docs/library/machine.UART.rst
diff options
context:
space:
mode:
authorNicko van Someren <nicko@nicko.org>2018-06-26 15:03:51 -0600
committerDamien George <damien.p.george@gmail.com>2018-07-17 13:17:23 +1000
commitc3c914f4dded3224d27ee73ce044ac43de11c2fb (patch)
treeb128bb5e1b10d4e4664e2e3747eb049bcf810241 /docs/library/machine.UART.rst
parenta3ba5f127e22687ac5928b14138e416625803653 (diff)
esp8266,esp32: Implement high-res timers using new tick_hz argument.
machine.Timer now takes a new argument in its constructor (or init method): tick_hz which specified the units for the period argument. The period of the timer in seconds is: period/tick_hz. For backwards compatibility tick_hz defaults to 1000. If the user wants to specify the period (numerator) in microseconds then tick_hz can be set to 1000000. The user can also specify a period of an arbitrary number of cycles of an arbitrary frequency using these two arguments. An additional freq argument has been added to allow frequencies to be specified directly in Hertz. This supports floating point values when available.
Diffstat (limited to 'docs/library/machine.UART.rst')
0 files changed, 0 insertions, 0 deletions