import pigpio pi = pigpio.pi() pi.hardware_PWM(12, 10, 100000)