Mozzi
version v2.0
sound synthesis library for Arduino
config_example_avr_hifi.h
1
/* Configuration example
2
3
This example is targetted at the AVR platform (Arduino Uno & friends), only!
4
5
Set configuration options according to the mode that was formerly known as "HIFI".
6
Do read up on the required hardware circuitry! */
7
8
#include "
MozziConfigValues.h
"
// for named option values
9
10
#define MOZZI_AUDIO_MODE MOZZI_OUTPUT_2PIN_PWM
11
//#define MOZZI_AUDIO_RATE 32768 // the default, in this mode
12
//#define MOZZI_PWM_RATE 125000 // the default, in this mode
13
//#define MOZZI_AUDIO_BITS_PER_CHANNEL 2 // the default, in this mode
14
15
// should you wish to customize the output pins:
16
//#define AUDIO_AUDIO_PIN_1 TIMER1_A_PIN
17
//#define MOZZI_AUDIO_PIN_1_REGISTER OCR1A // must also specify the hardware register responsible for this pin
18
//#define AUDIO_AUDIO_PIN_1_LOW TIMER1_B_PIN
19
//#define MOZZI_AUDIO_PIN_1_LOW_REGISTER OCR1B // must also specify the hardware register responsible for this pin
MozziConfigValues.h
This file keeps a list of named configuration values.
Generated automatically using Doxygen. If info on this page is outdated, incomplete, or wrong, please open an issue at https://github.com/sensorium/Mozzi/issues