Cannot use SPI and A2DP at the same time #597
-
Hi, I'm using ESP32 Wrover 4MB with SH1107 SPI OLED. In the past, I use I2C OLED and it works flawlessly with this A2DP library. Now I want to use SPI for faster refresh rate. I have made the SPI code for OLED work. Now I integrated A2DP and SPI together, OLED doesn't work anymore, but A2DP still works. After countless amount of trials, I figure out the SPI will stop working after I initialize the I2S in A2DP. I wonder why is it and if there is any fix for this? Below is the code that you can use to recreate the issue. #include <Arduino.h> // A2DP setup // Pin Definitions // SH1107 OLED setup Adafruit_SH1107 display(SCREEN_WIDTH, SCREEN_HEIGHT, &SPI, DC, OLED_RESET, CS); void setup() {
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Not sure: my first guess would be that you should not use pin 0 because this is usually used as masterclock for I2S ps. you are still using the old I2S API, that will not work any more after you upgrade to the actual ESP32 core |
Beta Was this translation helpful? Give feedback.
-
Just read the readme of the A2DP project |
Beta Was this translation helpful? Give feedback.
Not sure: my first guess would be that you should not use pin 0 because this is usually used as masterclock for I2S
ps. you are still using the old I2S API, that will not work any more after you upgrade to the actual ESP32 core