correct README PWM duty

This commit is contained in:
0x1abin
2018-06-06 10:07:06 +08:00
parent f79e218343
commit 425aa20cb2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ PWM channel is selected automatically from 8 available pwm channels.
import machine
pwm = machine.PWM(26)
pwm.freq(5000)
pwm.duty(666)
pwm.duty(66) # 0.0 ~ 100.0
```
+1 -1
View File
@@ -414,7 +414,7 @@ import machine
pwm = machine.PWM(machine.Pin(3))
pwm.freq(5000)
pwm.duty(666)
pwm.duty(66) # 0.0 ~ 100.0
```
+1 -1
View File
@@ -451,7 +451,7 @@ import machine
pwm = machine.PWM(machine.Pin(3))
pwm.freq(5000)
pwm.duty(666)
pwm.duty(66) # 0.0 ~ 100.0
```