Skip to content

Commit

Permalink
Zephyr DRAFT
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Dec 7, 2024
1 parent 7d53727 commit b36fb34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/AudioConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,17 @@ using WiFiServerSecure = BearSSL::WiFiServerSecure;
#ifdef ARDUINO_ARCH_ZEPHYR
# define IS_ZEPHYR
# define NO_INPLACE_INIT_SUPPORT
# define USE_TYPETRAITS
# define USE_I2S
# define PIN_I2S_BCK 2
# define PIN_I2S_WS 3
# define PIN_I2S_DATA_IN 4
# define PIN_I2S_DATA_OUT 4
// 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
# define PIN_I2S_MUTE -1
# define SOFT_MUTE_VALUE 0
# define USE_NANO33BLE
# define USE_ALT_PIN_SUPPORT
#endif

//------ VS1053 ----------
Expand Down
4 changes: 3 additions & 1 deletion src/AudioTools/CoreAudio/AudioI2S/I2SNanoSenseBLE.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ class I2SDriverNanoBLE {
LOGW("i2s_format not supported");
}
}

#ifdef IS_ZEPHYR
int digitalPinToPinName(int pin) {return pin;}
#endif
/// Provides the arduino or unconverted pin name
int getPinName(int pin) {
#if defined(USE_ALT_PIN_SUPPORT)
Expand Down

0 comments on commit b36fb34

Please sign in to comment.