change OutputPWMActive use revpimodio2
Posted: 18 Oct 2018, 09:27
hello everyone
can I change OutputPWMActive use revpimodio2 ?
can I change OutputPWMActive use revpimodio2 ?
https://revolutionpi.com/forum/
Code: Select all
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
# Max
rpi.io.PWM_1.value = 255
# Off
rpi.io.PWM_1.value = 0
# Very low
rpi.io.PWM_1.value = 1
# Something else :D
rpi.io.PWM_1.value = 100
# And so on...