motor test
This commit is contained in:
parent
7d9d7f9564
commit
e5114d38f9
@ -34,18 +34,21 @@ class motor:
|
||||
|
||||
self.pwm1 = GPIO.PWM(sp1, freq)
|
||||
self.pwm1.start(0)
|
||||
self.pwm1.ChangeFrequency(freq)
|
||||
self.pwm1.ChangeDutyCycle(0)
|
||||
|
||||
self.pwm2 = GPIO.PWM(sp2, freq)
|
||||
self.pwm2.start(0)
|
||||
self.pwm2.ChangeFrequency(freq)
|
||||
self.pwm2.ChangeDutyCycle(0)
|
||||
|
||||
self.pwm3 = GPIO.PWM(sp3, freq)
|
||||
self.pwm3.start(0)
|
||||
self.pwm3.ChangeFrequency(freq)
|
||||
self.pwm3.ChangeDutyCycle(0)
|
||||
|
||||
if self.halten == 1:
|
||||
self.pwm4 = GPIO.PWM(sp4, freq_halten)
|
||||
self.pwm4 = GPIO.PWM(sp4, freq)
|
||||
self.pwm4.start(0)
|
||||
self.pwm4.ChangeDutyCycle(cyc_halten)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user