Update testaukset.py
This commit is contained in:
@@ -9,9 +9,10 @@ button = GPIO(6, GPIO.IN)
|
||||
|
||||
# create PWM instance
|
||||
pwmPin = 12
|
||||
pwm = rGPIO.PWM(pwmPin, 10)
|
||||
rGPIO.setmode(rGPIO.BCM)
|
||||
rGPIO.setup(pwmPin, rGPIO.OUT)
|
||||
pwm = rGPIO.PWM(pwmPin, 10)
|
||||
|
||||
|
||||
pwm.start(0)
|
||||
# 1000 Hz sound
|
||||
|
||||
Reference in New Issue
Block a user