diff options
author | Paul Grayson <pdg@alum.mit.edu> | 2022-11-23 12:01:37 -0800 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-01-12 16:28:00 +1100 |
commit | b5823604a005de9232b482ce8f820735e8f69106 (patch) | |
tree | a5ce796a0a29d1ecb3cce7edf456b031ea202b66 /docs/esp32/tutorial | |
parent | f24cfd1a69df9ef1a8233c5bd57c56f701762b49 (diff) |
rp2/machine_pwm: Use more accurate formulas for freq and duty_u16.
This changes the freq() and duty_u16() functions to use more simpler, more
accurate formulas, in particular increasing the frequency accuracy from a
few percent to a fraction of a percent in many cases.
Signed-off-by: Paul Grayson <pdg@alum.mit.edu>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions