Constructor
new Buzzer(pin, frequency, duration)
Parameters:
Name | Type | Description |
---|---|---|
pin |
Pin | The pin associated with the buzzer |
frequency |
float | The default frequency |
duration |
float | The default duration (milliseconds) |
- License:
- MIT
- Source:
Methods
beep(frequency, duration)
Beeps.
Parameters:
Name | Type | Description |
---|---|---|
frequency |
float | The frequency |
duration |
float | The duration (milliseconds) |