-->
Page 1 of 1

How to drive passive buzzer with nonosdk?

PostPosted: Sat Mar 30, 2019 10:16 pm
by R1BNC
I can use the tone library in Arduino IDE( but compiling code takes too long, slow PC), so I want to use the native nonosdk but I cannot find any code for driving the passive buzzer. Can anyone post a code?


Hardware
Passive buzzer is connected to a 2n3904 transistor and 100 ohm resistor, the base of the transistor is connected to GPIO14, I am using a wemos d1 mini, PWM is needed for this?