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;
769
769
#ifdef ARDUINO_ARCH_ZEPHYR
770
770
# define IS_ZEPHYR
771
771
# 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
772
783
#endif
773
784
774
785
// ------ VS1053 ----------
Original file line number Diff line number Diff line change @@ -329,7 +329,9 @@ class I2SDriverNanoBLE {
329
329
LOGW (" i2s_format not supported" );
330
330
}
331
331
}
332
-
332
+ #ifdef IS_ZEPHYR
333
+ int digitalPinToPinName (int pin) {return pin;}
334
+ #endif
333
335
// / Provides the arduino or unconverted pin name
334
336
int getPinName (int pin) {
335
337
#if defined(USE_ALT_PIN_SUPPORT)
You can’t perform that action at this time.
0 commit comments