I have ch7 configured as pwm output for a buzzer using the following commands on screen 0 pre-init:
pwm7=50 // duty cycle
cfgpio 7,3,0 // buzzer pin
pwmf=1000 // frequency
This works great, the buzzer immediately sounds. The issue is turning it off! Common sense says pio7=0 should work, but no luck. I’m currently setting pwmf=65535 to make the buzzer inaudible, but this limits pwm functionality on pins 4 through 6. Reconfiguring pin 7 as an input also works to silence the buzzer, but this seems clunky. Is there a better way?