Using the HSPI bus on the TTGO Display board
Posted: Fri Jul 22, 2022 1:18 am
I have been trying for quite a while to interface a VS1053 mp3 decoder board with a TTGO T-Display board (ESP32 development board with a built in TFT display). Although I have seen reports of successfully interfacing with an SD card board with the TTGO, nowhere can I find anyone who has done it with a VS1053. The problem appears to be that the VSPI bus is used for the TTGO display and using the HSPI to connect to the VS1053 is difficult.
Below is the section of code where I've tried to connect the HSPI bus to the VS1053. It doesn't work. What am I missing?
(I will be glad to post the entire code if it would help)
Any help sincerely appreciated !!!!!!
#include <SPI.h> // Serial Peripheral Interface
#include <EEPROM.h> // Allows reads and writes to EEPROM
#include <VS1053.h> // Library for VS1053
//#include "VS1053_ext.h"
#include <WiFi.h> // Enables network connection can eliminate if using wifimanager ??
#include <HttpClient.h>
#include <TFT_eSPI.h>
#include "driver/rtc_io.h"
#include <DNSServer.h>
#include <WebServer.h>
//#include <WiFiManager.h>
TFT_eSPI tft = TFT_eSPI(); // Invoke graphics library, pins defined in User_Setup.h
// initialize SPI bus;
SPIClass mySPI(HSPI);
// Wiring of VS1053 board
//MISO-master in slave out MOSI-master out slave in SCK-serial clock
//CS-chip select DCS-data command select DREQ-data request interupt
//VS1053 player(VS1053_CS, VS1053_DCS, VS1053_DREQ);
VS1053 player(33, 32, 2);
*/
void setup () //========================== Setup ==========
{
// initialize SPI HSPI bus
mySPI.begin(25, 27, 26, 33); // clock,MISO,MOSI,CS
Below is the section of code where I've tried to connect the HSPI bus to the VS1053. It doesn't work. What am I missing?
(I will be glad to post the entire code if it would help)
Any help sincerely appreciated !!!!!!
#include <SPI.h> // Serial Peripheral Interface
#include <EEPROM.h> // Allows reads and writes to EEPROM
#include <VS1053.h> // Library for VS1053
//#include "VS1053_ext.h"
#include <WiFi.h> // Enables network connection can eliminate if using wifimanager ??
#include <HttpClient.h>
#include <TFT_eSPI.h>
#include "driver/rtc_io.h"
#include <DNSServer.h>
#include <WebServer.h>
//#include <WiFiManager.h>
TFT_eSPI tft = TFT_eSPI(); // Invoke graphics library, pins defined in User_Setup.h
// initialize SPI bus;
SPIClass mySPI(HSPI);
// Wiring of VS1053 board
//MISO-master in slave out MOSI-master out slave in SCK-serial clock
//CS-chip select DCS-data command select DREQ-data request interupt
//VS1053 player(VS1053_CS, VS1053_DCS, VS1053_DREQ);
VS1053 player(33, 32, 2);
*/
void setup () //========================== Setup ==========
{
// initialize SPI HSPI bus
mySPI.begin(25, 27, 26, 33); // clock,MISO,MOSI,CS