12 #ifndef CONFIG_CHECK_ESP8266_H
13 #define CONFIG_CHECK_ESP8266_H
73 #error This header should be included for ESP architecture, only
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
95 MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_INPUT, MOZZI_AUDIO_INPUT_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"
102 MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_CHANNELS, 1)
103 MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_BITS, 16)
104 #elif MOZZI_IS(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_I2S_DAC)
105 # define MOZZI_PDM_RESOLUTION 1
106 MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_BITS, 16)
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