Domi04151309

Arduino Board

What is Arduino?

Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs and turn it into an output. You can tell your board what to do by sending a set of instructions to the microcontroller on the board.

To the Arduino Homepage

About the Library

This library is made for programmers who want a more advanced tone function. It was developed by Dominik Reichl in 2018 and designed for the Arduino Uno.
This library is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

You can download the library here

How to Install

1. Download the repository from GitHub
2. Unzip it
3. Copy the "Arduino-Notes-master" folder into your library folder
4. Open the Arduino IDE
5. Click on Sketch > Include Library > Notes
Done!

Functions

class Notes

The main class of this library.

void advancedSettings(unsigned int beatBlinkDuration, unsigned int toneGap)

Sets the duration the beat LED blinks and the gap between the tones.

void speakerSetup(uint8_t pin, unsigned int speed = 120)

Sets the speed in beats per minute and the pin of the speaker.

void toneLEDSetup(uint8_t beat, uint8_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t a, uint8_t b)

Sets the pins of the LEDs.

void note(float frequency, uint8_t duration, bool dotted = false, bool offbeat = false)

Plays a sound with the applied settings. The duration has to be 1, 2, 4 or 8 for 1/1, 1/2, 1/4 and 1/8.

For the frequency you can also use keywords which you can find here

Examples

You can find examples here and in the library. The examples show you how to use this library and what you can do with it. It also has an example circuit.