Skip to content

Commit c23314b

Browse files
committed
AUDIO_DRIVER_FORCE_IDF config
1 parent 9f902b3 commit c23314b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/ConfigAudioDriver.h

+4
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@
5454
# define AUDIO_DRIVER_LOGGING_IDF
5555
#endif
5656

57+
/// Force to use the IDF I2C Implementation instead of the Arduino Wire
58+
#if AUDIO_DRIVER_FORCE_IDF
59+
# define AUDIO_DRIVER_FORCE_IDF false
60+
#endif

src/Platforms/API_I2C_Arduino.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// I2C Driver for Arduino
2-
#ifdef ARDUINO
2+
#ifdef ARDUINO && !AUDIO_DRIVER_FORCE_IDF
33

44
#include "Platforms/API_I2C.h"
55

src/Platforms/API_I2C_EspressifIDF.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// I2C Driver for Espressif IDF
2-
#ifdef ESP32_CMAKE
2+
#if !defined(ARDUINO) || AUDIO_DRIVER_FORCE_IDF
33

44
#include <assert.h>
55
#include <string.h> // memcpy

0 commit comments

Comments
 (0)