nrf5/modules: updating test python file with correct PWM frequency type.

This commit is contained in:
Glenn Ruben Bakke 2016-12-24 00:30:35 +01:00
parent 2db3f0deb7
commit 3191a31ce8
1 changed files with 2 additions and 2 deletions

View File

@ -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)