From 9bb5a5a63909138a2a9428f19c314945d673066b Mon Sep 17 00:00:00 2001 From: Sosnus Date: Wed, 23 Jul 2025 07:20:03 +0200 Subject: [PATCH] Python3 compatible Make Python3 compatible (tested on python3.11 and RPi Zero) --- syspwm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syspwm.py b/syspwm.py index 2272681..dbf8f05 100644 --- a/syspwm.py +++ b/syspwm.py @@ -101,11 +101,11 @@ def set_frequency(self,hz): while True: pwm.set_duty_cycle(S) - print 0 + print(0) sleep(SLEE) pwm.set_duty_cycle(M) - print 90 + print(90) sleep(SLEE) pwm.set_duty_cycle(E) - print 180 + print(180) sleep(SLEE)