nrf5/modules: updating test python file with correct PWM frequency type.
This commit is contained in:
parent
2db3f0deb7
commit
3191a31ce8
|
@ -3,8 +3,8 @@ from machine import PWM
|
|||
|
||||
def pulse():
|
||||
for i in range(0, 101):
|
||||
p = PWM(0, pin=17, freq=50, duty=i, period=16000)
|
||||
p = PWM(0, pin=17, freq=PWM.FREQ_16MHZ, duty=i, period=16000)
|
||||
time.sleep_ms(10)
|
||||
for i in range(0, 101):
|
||||
p = PWM(0, pin=17, freq=50, duty=100-i, period=16000)
|
||||
p = PWM(0, pin=17, freq=PWM.FREQ_16MHZ, duty=100-i, period=16000)
|
||||
time.sleep_ms(10)
|
||||
|
|
Loading…
Reference in New Issue