diff options
author | Olivier Ortigues <o.ortigues@gmail.com> | 2018-02-14 21:39:28 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-15 11:14:34 +1100 |
commit | d072573226f5e9eb12c1859559cff10c698a99ce (patch) | |
tree | 7f0bd2ba9ff7232c80cd7cdce1ee3950b21b52ef /docs/esp8266/tutorial | |
parent | 5c83d05b493af58bb14cba9dbfc2bf2d85de2962 (diff) | |
download | micropython-d072573226f5e9eb12c1859559cff10c698a99ce.tar.gz micropython-d072573226f5e9eb12c1859559cff10c698a99ce.zip |
docs/esp8266: Update PWM doc regarding clipping of min/max values.
Diffstat (limited to 'docs/esp8266/tutorial')
-rw-r--r-- | docs/esp8266/tutorial/pwm.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/esp8266/tutorial/pwm.rst b/docs/esp8266/tutorial/pwm.rst index 8de509427c..61eb190f66 100644 --- a/docs/esp8266/tutorial/pwm.rst +++ b/docs/esp8266/tutorial/pwm.rst @@ -28,8 +28,8 @@ You can set the frequency and duty cycle using:: >>> pwm12.duty(512) Note that the duty cycle is between 0 (all off) and 1023 (all on), with 512 -being a 50% duty. If you print the PWM object then it will tell you its current -configuration:: +being a 50% duty. Values beyond this min/max will be clipped. If you +print the PWM object then it will tell you its current configuration:: >>> pwm12 PWM(12, freq=500, duty=512) |