kopia lustrzana https://github.com/micropython/micropython
Timer.ONE_SHOT, not Timer.ONESHOT
rodzic
871ea46899
commit
1276880ae9
|
@ -372,7 +372,7 @@ Constructor:
|
|||
|
||||
`timer = Timer(id, mode=Timer.PERIODIC, *, freq, period_ns, counter_config=(prescaler, period_counts))`
|
||||
|
||||
* mode: mandatory values: Timer.PERIODIC, Timer.ONESHOT, other: hardware-specific, subject to further standardization.
|
||||
* mode: mandatory values: Timer.PERIODIC, Timer.ONE_SHOT, other: hardware-specific, subject to further standardization.
|
||||
|
||||
Since timers are used for various applications, many of which require high accuracy, having 3 ways of setting the timer frequency (freq itself, period in us or ns, and period in timer counts together with the prescaler) it's important. Having period in time units also helps readability and ease of use.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue