mirror of
https://github.com/m5stack/M5Cloud.git
synced 2026-05-20 10:07:21 -07:00
correct README PWM duty
This commit is contained in:
@@ -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
@@ -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
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user