12 #ifndef CONFIG_CHECK_ESP8266_H
13 #define CONFIG_CHECK_ESP8266_H
73 #error This header should be included for ESP architecture, only
76 #include "disable_2pinmode_on_github_workflow.h"
77 #if !defined(MOZZI_AUDIO_MODE)
78 #define MOZZI_AUDIO_MODE MOZZI_OUTPUT_PDM_VIA_SERIAL
80 MOZZI_CHECK_SUPPORTED(
MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED, MOZZI_OUTPUT_EXTERNAL_CUSTOM, MOZZI_OUTPUT_PDM_VIA_I2S, MOZZI_OUTPUT_PDM_VIA_SERIAL, MOZZI_OUTPUT_I2S_DAC)
82 #if !defined(MOZZI_AUDIO_RATE)
83 #define MOZZI_AUDIO_RATE 32768
86 #if !defined(MOZZI_AUDIO_BITS)
87 # define MOZZI_AUDIO_BITS 16
90 #if !defined(MOZZI_ANALOG_READ)
91 # define MOZZI_ANALOG_READ MOZZI_ANALOG_READ_NONE
97 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PDM_VIA_I2S, MOZZI_OUTPUT_PDM_VIA_SERIAL)
98 # if !defined(PDM_RESOLUTION)
99 # define MOZZI_PDM_RESOLUTION 2
101 # include "disable_stereo_on_github_workflow.h"
104 #elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_I2S_DAC)
105 # define MOZZI_PDM_RESOLUTION 1
109 #define PDM_RESOLUTION 2
111 #if MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_PDM_VIA_I2S, MOZZI_OUTPUT_I2S_DAC)
116 #define BYPASS_MOZZI_OUTPUT_BUFFER true
119 #define MOZZI__INTERNAL_ANALOG_READ_RESOLUTION 10
#define MOZZI_AUDIO_INPUT
Whether to enable built in audio input feature.
#define MOZZI_AUDIO_BITS
Output resolution of audio samples.
#define MOZZI_AUDIO_CHANNELS
This sets allows to change from a single/mono audio output channel to stereo output.
#define MOZZI_AUDIO_MODE
Configure how Mozzi outputs generated sounds.
#define MOZZI_ANALOG_READ
Whether to compile in support for non-blocking analog reads.