![]() |
SparkFun Qwiic Buzzer
v1.0.1-17-gba6cd53
Library for the SparkFun Qwiic Buzzer
|
Header file for SparkFun Qwiic Buzzer Library. More...
#include "sfDevBuzzerPitches.h"
#include "sfDevBuzzerRegisters.h"
#include <stdint.h>
#include <sfTk/sfToolkit.h>
#include <sfTk/sfTkII2C.h>
Go to the source code of this file.
Classes | |
class | sfDevBuzzer |
Macros | |
#define | SFE_QWIIC_BUZZER_DEFAULT_ADDRESS 0x34 |
#define | SFE_QWIIC_BUZZER_DEVICE_ID 0x5E |
#define | SFE_QWIIC_BUZZER_RESONANT_FREQUENCY 2730 |
#define | SFE_QWIIC_BUZZER_VOLUME_OFF 0 |
#define | SFE_QWIIC_BUZZER_VOLUME_MIN 1 |
#define | SFE_QWIIC_BUZZER_VOLUME_LOW 2 |
#define | SFE_QWIIC_BUZZER_VOLUME_MID 3 |
#define | SFE_QWIIC_BUZZER_VOLUME_MAX 4 |
Header file for SparkFun Qwiic Buzzer Library.
This file declares the sfDevBuzzer class which provides control functionality for the SparkFun Qwiic Buzzer hardware. The class enables I2C communication, configuration of tone frequency, duration, volume, and includes several pre-programmed sound effects.
#define SFE_QWIIC_BUZZER_DEFAULT_ADDRESS 0x34 |
#define SFE_QWIIC_BUZZER_DEVICE_ID 0x5E |
#define SFE_QWIIC_BUZZER_RESONANT_FREQUENCY 2730 |
#define SFE_QWIIC_BUZZER_VOLUME_LOW 2 |
#define SFE_QWIIC_BUZZER_VOLUME_MAX 4 |
#define SFE_QWIIC_BUZZER_VOLUME_MID 3 |
#define SFE_QWIIC_BUZZER_VOLUME_MIN 1 |
#define SFE_QWIIC_BUZZER_VOLUME_OFF 0 |