Timer.ONE_SHOT, not Timer.ONESHOT

master
Paul Sokolovsky 2016-02-05 22:43:44 +02:00
rodzic 871ea46899
commit 1276880ae9
1 zmienionych plików z 1 dodań i 1 usunięć

@ -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.