|
1 | | -SparkFun Qwiic Buzzer Arduino Library [](https://travis-ci.org/sparkfun/SparkFun_Qwiic_Buzzer_Arduino_Library) |
2 | | -======================================== |
3 | 1 |
|
4 | | -[](https://www.sparkfun.com/products/24474) |
| 2 | + |
5 | 3 |
|
6 | | -[*SparkFun Qwiic Buzzer (BOB-24474)*](https://www.sparkfun.com/products/24474) |
| 4 | +# SparkFun Qwiic Buzzer |
7 | 5 |
|
8 | | -<!--- |
| 6 | +Arduino Library for the SparkFun Qwiic Buzzer breakout board |
9 | 7 |
|
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
10 | 14 |
|
11 | | -UPDATE WHAT DOES THIS LIBRARY DO!?! =) |
12 | 15 |
|
| 16 | +The [SparkFun_Qwiic_Buzzer_Arduino_Library (BOB-24474)](https://www.sparkfun.com/sparkfun-qwiic-buzzer.html) adds simple beeps and buzzes to your projects via I2C. Make some noises to alert you when something interesting (or urgent) happens. Simply connect a Qwiic cable and load up some pre-written code to an Arduino to start making noises! |
13 | 17 |
|
| 18 | +The board includes an ATtiny84 with custom firmware to control the magnetic buzzer over I2C. Utilizing our handy Qwiic system, no soldering is required to connect it to the rest of your system. However, we still broke out 0.1"-spaced PTH pads if you prefer to use a breadboard to access the board's I2C, power, trigger, and reset pins on the board's edge. A 2.2kΩ pull-up resistor is included on the data and clock lines. |
14 | 19 |
|
15 | | -This library allows the user to: |
| 20 | +Looking for the board that matches this library - pick up a [SparkFun Qwiic Buzzer (BOB-24474)](https://www.sparkfun.com/sparkfun-qwiic-buzzer.html) at www.sparkfun.com. |
16 | 21 |
|
17 | | -* Turn the buzzer on and off directly |
18 | | -* Optionally, set the frequency, duration, and volume of the sound |
19 | | -* Adjust the device's I<sup>2</sup>C address |
| 22 | +## Functionality |
20 | 23 |
|
21 | | ---> |
| 24 | +This library provides an interface that enables the following functionality when a SparkFun Qwiic Buzzer breakout board: |
22 | 25 |
|
23 | | -Repository Contents |
24 | | -------------------- |
| 26 | +* ***TODO*** |
| 27 | +* |
25 | 28 |
|
26 | | -* **/examples** - Example sketches for the library (.ino). Run these from the Arduino IDE. |
27 | | -* **/src** - Source files for the library (.cpp, .h). |
28 | | -* **keywords.txt** - Keywords from this library that will be highlighted in the Arduino IDE. |
29 | | -* **library.properties** - General library properties for the Arduino package manager. |
30 | 29 |
|
31 | | -Documentation |
32 | | --------------- |
| 30 | +## General Use |
33 | 31 |
|
34 | | -* **[Installing an Arduino Library Guide](https://learn.sparkfun.com/tutorials/installing-an-arduino-library)** - Basic information on how to install an Arduino library. |
35 | | -* **[Product Repository](https://github.com/sparkfun/SparkFun_Qwiic_Buzzer)** - Main repository (including hardware files) for the SparkFun Qwiic Buzzer Breakout Board. |
36 | | -* **[Hookup Guide](https://docs.sparkfun.com/SparkFun_Qwiic_Buzzer)** - Basic hookup guide for the Qwiic Buzzer. |
| 32 | +***TODO*** |
37 | 33 |
|
38 | | -Products that use this Library |
39 | | ---------------------------------- |
| 34 | +## Examples |
40 | 35 |
|
41 | | -* [*BOB-24474*](https://www.sparkfun.com/products/24474) - Initial release |
| 36 | +The following examples are provided with the library |
42 | 37 |
|
43 | | -Version History |
44 | | ---------------- |
| 38 | +- [Buzz](examples/Example_01_Buzz/Example_01_Buzz.ino) - This example shows how to turn the buzzer on and off. |
| 39 | +- [Buzz Frequency](examples/Example_02_Buzz_Frequency/Example_02_Buzz_Frequency.ino) - This example shows how to adjust the frequency of the buzzer. |
| 40 | +- [Buzz Duration](examples/Example_03_Buzz_Duration/Example_03_Buzz_Duration.ino) - This example shows how to control the buzzer using frequency and duration. |
| 41 | +- [Buzz Volume](examples/Example_04_Buzz_Volume/Example_04_Buzz_Volume.ino) - This example shows how to control the buzzer to sound at different volumes. |
| 42 | +-[Change I2C Address](examples/Example_05_ChangeI2CAddress/Example_05_ChangeI2CAddress.ino) - A configurator for changing the I2C address on the Qwiic Buzzer that walks the user through finding the address of their buzzer, and then changing it! |
| 43 | +- [Save Settings](examples/Example_06_SaveSettings/Example_06_SaveSettings.ino) - This example shows how to save settings to the buzzer. |
| 44 | +- [Melody](examples/Example_07_Melody/Example_07_Melody.ino) - TThis example shows how to buzz a melody on the Qwiic Buzzer. |
| 45 | +- [Sound Effects](examples/Example_08_Sound_Effects/Example_08_Sound_Effects.ino) - This example demos the sound effects included in this library. |
| 46 | +- [Firmware Version](examples/Example_09_FirmwareVersion/Example_09_FirmwareVersion.ino) - This example shows how to read the firmware version from the Qwiic Buzzer |
| 47 | +- [Buzz Multiple](examples/Example_10_Buzz_Multiple/Example_10_Buzz_Multiple.ino) - This example shows how to control multiple buzzers. |
45 | 48 |
|
46 | | -* v1.0.0 - Initial Public release. |
| 49 | +## Documentation |
47 | 50 |
|
48 | | -License Information |
49 | | -------------------- |
| 51 | +The full API and use documentation for this library is provided [here](https://docs.sparkfun.com/SparkFun_Qwiic_Buzzer_Arduino_Library/). For a quick reference, the main methods available in the library are listed [here](https://docs.sparkfun.com/SparkFun_Qwiic_Buzzer_Arduino_Library/functions.html). |
50 | 52 |
|
51 | | -This product is _**open source**_! |
| 53 | +Curious about the hardware this board works with - visit the SparkFun Qwiic Buzzer [hardware repository](https://github.com/sparkfun/SparkFun_Qwiic_Buzzer). |
52 | 54 |
|
53 | | -Please review the LICENSE.md file for license information. |
| 55 | +The ***Hookup Guide*** for the SparkFun Qwiic Buzzer is available [here](https://docs.sparkfun.com/SparkFun_Qwiic_Buzzer). |
54 | 56 |
|
55 | | -If you have any questions or concerns on licensing, please contact technical support on our [SparkFun forums](https://forum.sparkfun.com/viewforum.php?f=152). |
| 57 | +## License Information |
| 58 | + |
| 59 | +This product is ***open source***! |
| 60 | + |
| 61 | +This product is licensed using the [MIT Open Source License](https://opensource.org/license/mit). |
56 | 62 |
|
57 | | -Distributed as-is; no warranty is given. |
58 | 63 |
|
0 commit comments