Comments (3)
Hi there, thanks for your reply. I appreciate that.
Having a look at the code I see in function readIOprefs() the value for dreq_pin is assigned a default value (in my case: 4) unless you specify otherwise in the config file via Webbrowser.
Then in setup() the VS1053 object is created and initialized with above chosen DREQ pin number:
...
vs1053player = new VS1053(ini_block.vs_cs_pin, // Make instance of player
ini_block.vs_dcs_pin,
ini_block.vs_dreq_pin, <------------- DREQ pin number
ini_block.vs_shutdown_pin);
...
A few lines further down is a function call to the VS1053 initialization routine:
...
vs1053player->begin(); // initialize VS1053 player
...
In this initialization routine the actual ESP32 port (DREQ should be connected to) gets initialized:
...
void VS1053::begin()
{
pinMode(dreq_pin, INPUT); // DREQ is an input <------------- DREQ pin initialized
pinMode(cs_pin, OUTPUT); // the SCI and SDI signals
...
So without ENABLE_DIGITAL_INPUTS being defined the ESP32 DREQ port gets initialized properly in any case. Furthermore after an ESP32 reset all ports are set by default to mode INPUT anyway.
From my point of view defining ENABLE_DIGITAL_INPUTS is not necessary for the VS1053 to work. My project runs ok this way.
You can try modifying above line to "pinMode(dreq_pin, INPUT_PULLUP);" and see if it changes anything. That might suppress the error in case the VS1053 DREQ line is not properly connected to the ESP32 and you don't have a pullup resistor on that pin. However, without that connection it won't work later on.
I hope I have understood your problem accurately, otherwise come back to me.
Regards Thomas
from esp32-webradio-plusdlna.
Thanks for your quick reply. The pin number was not the case, since i set all pin default values to -1 and let them get the respective values in nvs when boot up. I've tried to set the default dreq pin to 26 before, not working also. I will further test dreq with another gpio pin and see if it works.
By the way i'm trying to output and use i2s signal with another esp32 as an i2s-to-spdif converter. Will let you know the result.
from esp32-webradio-plusdlna.
An oscilloscope helped me a lot finding errors, wouldn't want to live without one. Let me know how it goes. Good luck.
BTW: If you like this project, please give it a star. Thanks. :-)
from esp32-webradio-plusdlna.
Related Issues (3)
- Build errors HOT 1
- How to make simple DLNA audio player? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-webradio-plusdlna.