![]() |
MatrixMiniR4 1.1.4
Matrix Mini R4 Arduino Library API Documentation
|
A class for controlling a buzzer. More...
#include <MiniR4Buzzer.h>
Public Member Functions | |
MiniR4BUZZER () | |
void | begin (uint8_t pin) |
Initializes the buzzer by setting the pin number. (Built Buzzer at Uno Pin 6) | |
void | Tone (uint16_t frequency, uint32_t duration) |
Generates a tone at the specified frequency for a given duration. | |
void | NoTone (void) |
Stops the tone on the buzzer. | |
A class for controlling a buzzer.
This class provides methods to generate tones and stop tones using a specified pin on the Arduino.
Definition at line 17 of file MiniR4Buzzer.h.
|
inline |
Definition at line 20 of file MiniR4Buzzer.h.
|
inline |
Initializes the buzzer by setting the pin number. (Built Buzzer at Uno Pin 6)
pin | The pin number connected to the buzzer. |
Definition at line 27 of file MiniR4Buzzer.h.
|
inline |
Stops the tone on the buzzer.
Definition at line 40 of file MiniR4Buzzer.h.
|
inline |
Generates a tone at the specified frequency for a given duration.
frequency | The frequency of the tone in hertz. |
duration | The duration of the tone in milliseconds. |
Definition at line 35 of file MiniR4Buzzer.h.