square wave out pin?
-
this is prob the wrong category but i had no idea where to put it
Im building a project utilising phototransistors,laser diodes and a piezo buzzer hooked up to a Tiny 2040.I was wondering if there was a pin to act as a 'square wave out pin', which my piezo buzzer needs.
If anyone has a simpler way of doing this or a way to do it using what Ive described above,I'd be :) :) :) .Lea out
-
@lollapalooza you probably want the PWM function - https://mytoolbox.tech/tec/en/2021/12/26/rspi_pico_pwm_mpython_e/ - just set the duty cycle to 50% (which I think is what that article does) for a square shape.
-
@quarky ooh ok I'll try that later
thanks