Skip to content

Commit b36fb34

Browse files
committed
Zephyr DRAFT
1 parent 7d53727 commit b36fb34

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/AudioConfig.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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 ----------

src/AudioTools/CoreAudio/AudioI2S/I2SNanoSenseBLE.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)