File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
AudioTools/CoreAudio/AudioI2S Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -769,6 +769,17 @@ using WiFiServerSecure = BearSSL::WiFiServerSecure;
769769#ifdef ARDUINO_ARCH_ZEPHYR
770770# define IS_ZEPHYR
771771# define NO_INPLACE_INIT_SUPPORT
772+ # define USE_TYPETRAITS
773+ # define USE_I2S
774+ # define PIN_I2S_BCK 2
775+ # define PIN_I2S_WS 3
776+ # define PIN_I2S_DATA_IN 4
777+ # define PIN_I2S_DATA_OUT 4
778+ // Default Setting: The mute pin can be switched actovated by setting it to a gpio (e.g 4). Or you could drive the LED by assigning LED_BUILTIN
779+ # define PIN_I2S_MUTE -1
780+ # define SOFT_MUTE_VALUE 0
781+ # define USE_NANO33BLE
782+ # define USE_ALT_PIN_SUPPORT
772783#endif
773784
774785// ------ VS1053 ----------
Original file line number Diff line number Diff line change @@ -329,7 +329,9 @@ class I2SDriverNanoBLE {
329329 LOGW (" i2s_format not supported" );
330330 }
331331 }
332-
332+ #ifdef IS_ZEPHYR
333+ int digitalPinToPinName (int pin) {return pin;}
334+ #endif
333335 // / Provides the arduino or unconverted pin name
334336 int getPinName (int pin) {
335337#if defined(USE_ALT_PIN_SUPPORT)
You can’t perform that action at this time.
0 commit comments