@@ -130,7 +130,7 @@ MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_MODE, MOZZI_OUTPUT_EXTERNAL_TIMED, MOZZI_OUTPU
130
130
MOZZI_CHECK_SUPPORTED (MOZZI_ANALOG_READ , MOZZI_ANALOG_READ_NONE )
131
131
MOZZI_CHECK_SUPPORTED (MOZZI_AUDIO_INPUT , MOZZI_AUDIO_INPUT_NONE )
132
132
133
- #if MOZZI_IS (MOZZI_AUDIO_MODE , MOZZI_OUTPUT_I2S_DAC , MOZZI_OUTPUT_PDM_VIA_I2S )
133
+ #if MOZZI_IS (MOZZI_AUDIO_MODE , MOZZI_OUTPUT_I2S_DAC )
134
134
# if !defined(MOZZI_I2S_FORMAT )
135
135
# define MOZZI_I2S_FORMAT MOZZI_I2S_FORMAT_PLAIN
136
136
# endif
@@ -161,6 +161,27 @@ MOZZI_CHECK_SUPPORTED(MOZZI_AUDIO_INPUT, MOZZI_AUDIO_INPUT_NONE)
161
161
# endif
162
162
#endif
163
163
164
+ #if MOZZI_IS (MOZZI_AUDIO_MODE , MOZZI_OUTPUT_I2S_DAC , MOZZI_OUTPUT_PDM_VIA_I2S )
165
+ # if !defined(MOZZI_I2S_FORMAT )
166
+ # define MOZZI_I2S_FORMAT MOZZI_I2S_FORMAT_PLAIN
167
+ # endif
168
+ # if !defined(MOZZI_I2S_PIN_BCK )
169
+ # define MOZZI_I2S_PIN_BCK I2S_GPIO_UNUSED
170
+ # endif
171
+ # if !defined(MOZZI_I2S_PIN_WS )
172
+ # define MOZZI_I2S_PIN_WS I2S_GPIO_UNUSED
173
+ # endif
174
+ # if !defined(MOZZI_I2S_PIN_DATA )
175
+ # define MOZZI_I2S_PIN_DATA 33
176
+ # endif
177
+ # if !defined(MOZZI_I2S_PIN_MCLK )
178
+ # define MOZZI_I2S_PIN_MCLK I2S_GPIO_UNUSED
179
+ # endif
180
+ # define MOZZI_I2S_WS_INV 0 // unused but need to be defined
181
+ # define MOZZI_I2S_BCK_INV 0
182
+ # define MOZZI_I2S_MBCK_INV 0
183
+ #endif
184
+
164
185
#if MOZZI_IS (MOZZI_AUDIO_MODE /*, MOZZI_OUTPUT_INTERNAL_DAC*/ , MOZZI_OUTPUT_I2S_DAC , MOZZI_OUTPUT_PDM_VIA_I2S )
165
186
//# include <driver/i2s.h>
166
187
# if !defined(MOZZI_IS2_PORT )
0 commit comments