summaryrefslogtreecommitdiffstatshomepage
path: root/py/objzip.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-21 22:54:02 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-21 22:54:02 +0100
commit0e58c5810de2717f9707e9eef82cd57a43468a60 (patch)
treea7d15cf3e8ba61f441fa184bd8a6659df1d8c0ce /py/objzip.c
parentbecbc87fd73c98664b472b4a06c2b54558dd5669 (diff)
downloadmicropython-0e58c5810de2717f9707e9eef82cd57a43468a60.tar.gz
micropython-0e58c5810de2717f9707e9eef82cd57a43468a60.zip
stmhal: Add pulse_width_ratio to timer channel object.
This allows to set the pulse width (for PWM mode) as a ratio relative to the period of the timer. Eg, 0.5 is a 50% duty cycle. You can set the ratio in the channel init, or using channel.pulse_width_ratio; the latter can also read the pulse width as a ratio.
Diffstat (limited to 'py/objzip.c')
0 files changed, 0 insertions, 0 deletions