Example
This example shows how to play tones on the buzzer.
#include <NanoPlayBoard.h>
NanoPlayBoard board;
void setup() {
}
void loop() {
int value = board.potentiometer.read();
board.buzzer.playTone(value);
delay(100);
}
The source code of this example is available on GitHub.