-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use both VSPI & HSPI SPI buses simultaneously? #790
Comments
SPIClass SPI2(HSPI);
void setup(){
SPI2.begin(...);
//... your code
} In order to use the OLED with the other SPI you might need to alter the lib to take |
I tried replacing all references to SPI and replaced them to SPI2 in this file:
and oled works fine. It didn't switch to HSPI pins. So, looks like the VSPI (3) and HSPI (2) #defines are not being executed? I need to debug more. |
Hello @neilpanchal , |
thanks. My issue is resolved |
Hardware:
Board: ESP32-DevKit-C
Core Installation/update date: Latest
IDE name: IDF Component
Description:
Trying to use both VPSI & HSPI busses simultaneously to drive two OLED displays. By default,
SPIBegin()
works with VSPI pinouts.Sketch:
I've tried the suggested code here: olikraus/u8g2#377 (comment)
Is the usage of HSPI + VSPI through arduino API possible currently? If so, what is the best way to achieve this?
The text was updated successfully, but these errors were encountered: