Open rjrajbir opened 1 year ago
You gotta search for ESP32 examples for usage of both SPI controllers, VSPI and HSPI.
This could look something like:
#include <WiFi.h>
#define VS1053_CS 32
#define VS1053_DCS 33
#define VS1053_DREQ 35
// zweiter SPI Kanal: HSPI
SPIClass SPI2(HSPI);
// TFT ESP32
#define TFT_CS 15 // 5 -15 CS
#define TFT_RST 16 // Reset
#define TFT_DC 17 // A0
// For 1.44" and 1.8" TFT with ST7735 use:
Adafruit_ST7735 tft = Adafruit_ST7735(&SPI2, TFT_CS, TFT_DC, TFT_RST);
Hi I have made my custom hardware where I am custom SPI pins to communicate with VS1053b chip and A TFT Display.
I am able to test my display properly but not able to run VS1053b. I checked with logic analyser that I am not able to get the proper SPI communication with VS1053b and esp32 wrover.
Here is my code