File tree 1 file changed +21
-5
lines changed
1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,39 @@ namespace esp_i2s {
32
32
#endif
33
33
34
34
#ifndef PIN_I2S_FS
35
- #if CONFIG_IDF_TARGET_ESP32S2
36
- #define PIN_I2S_FS 27
35
+ #if ( CONFIG_IDF_TARGET_ESP32S2 | CONFIG_IDF_TARGET_ESP32S3)
36
+ #define PIN_I2S_FS 15
37
37
#else
38
38
#define PIN_I2S_FS 25
39
39
#endif
40
40
#endif
41
41
42
42
#ifndef PIN_I2S_SD
43
- #define PIN_I2S_SD 26
43
+ #if CONFIG_IDF_TARGET_ESP32S3
44
+ #define PIN_I2S_SD 12
45
+ #elif CONFIG_IDF_TARGET_ESP32S2
46
+ #define PIN_I2S_SD 33
47
+ #else
48
+ #define PIN_I2S_SD 26
49
+ #endif
44
50
#endif
45
51
46
52
#ifndef PIN_I2S_SD_OUT
47
- #define PIN_I2S_SD_OUT 26
53
+ #if CONFIG_IDF_TARGET_ESP32S3
54
+ #define PIN_I2S_SD_OUT 12
55
+ #elif CONFIG_IDF_TARGET_ESP32S2
56
+ #define PIN_I2S_SD_OUT 33
57
+ #else
58
+ #define PIN_I2S_SD_OUT 26
59
+ #endif
48
60
#endif
49
61
50
62
#ifndef PIN_I2S_SD_IN
51
- #define PIN_I2S_SD_IN 35 // Pin 35 is only input!
63
+ #if CONFIG_IDF_TARGET_ESP32S2
64
+ #define PIN_I2S_SD_IN 21
65
+ #else
66
+ #define PIN_I2S_SD_IN 35 // Pin 35 is only input!
67
+ #endif
52
68
#endif
53
69
54
70
typedef enum {
You can’t perform that action at this time.
0 commit comments