Closed nodoubtman closed 3 years ago
tcfkat resolved the problem: GPIO > 31
You said that accessing GPIO > 31 for (D)CS is not possible ... yes, it is. I changed the lines in vs1053_ext.h:
`protected: // Expandend beyond GPIO32. tcfkat 20210222
inline void DCS_HIGH() {(dcs_pin&0x20)?(GPIO.out1_w1ts.data=1<<(dcs_pin-32)):(GPIO.out_w1ts=1<<dcs_pin);}
inline void DCS_LOW() {(dcs_pin&0x20)?(GPIO.out1_w1tc.data=1<<(dcs_pin-32)):(GPIO.out_w1tc=1<<dcs_pin);}
inline void CS_HIGH() {(cs_pin&0x20)?(GPIO.out1_w1ts.data=1<<(cs_pin-32)):(GPIO.out_w1ts=1<<cs_pin);}
inline void CS_LOW() {(cs_pin&0x20)?(GPIO.out1_w1tc.data=1<<(cs_pin-32)):(GPIO.out_w1tc=1<<cs_pin);}`
And in vs1053_ext.cpp:
`void VS1053::begin(){
pinMode(dreq_pin, INPUT); // DREQ is an input
pinMode(cs_pin, OUTPUT); // The SCI and SDI signals
pinMode(dcs_pin, OUTPUT);
DCS_HIGH(); //Does not work for me: digitalWrite(dcs_pin, HIGH); tcfkat 20210221
CS_HIGH(); //Does not work for me: digitalWrite(cs_pin, HIGH); tcfkat 20210221`
Best regards
Thank You. Marc.
Hello, I tried other library and its working, your doesnt even connect to the stream...
here's my config:
// We're using the standard SPI pins, but we will need to define the // extra pins for CS, DCS, and DREQ.
define VS1053_CS 32
define VS1053_DCS 33
define VS1053_DREQ 35
Thanks. Marc.