From 3191a31ce890e764821ea8a04316700c0dd93e62 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 24 Dec 2016 00:30:35 +0100 Subject: [PATCH] nrf5/modules: updating test python file with correct PWM frequency type. --- nrf5/modules/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrf5/modules/test.py b/nrf5/modules/test.py index db1af5af88..87af84edf6 100644 --- a/nrf5/modules/test.py +++ b/nrf5/modules/test.py @@ -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)