karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
515 stars 155 forks source link

Chopping of audio with VS1053B and ILI9341 both on SPI bus #222

Open mamut-tme opened 3 years ago

mamut-tme commented 3 years ago

Hi, I have connected both VS1053B and ILI9341 both on the SPI bus (as described in the Hardware section of the manual), but the audio is then chopped, sounds like the network connection is bad and needs to buffer a lot. When I disable the LCD - sys.lcd("255") - everything works fine. If I setup a I2C display (which I don't have connected, not even the GPIO configured), everythings works fine.

Here 2 log files with debug option enabled, one with lcd set to 194 (correct setting) and 255: lcd194.txt lcd255.txt

Could it be, that the two devices on the same SPI bus don't interact too well?

karawin commented 2 years ago

I hope you selected different CS for the vs1053 and the LCD SPI LCD: P_LCD_CS CS default:

define PIN_LCD_CS GPIO_NUM_13 //CS

VS1053B: P_XCS XCS P_XDCS XDCS Default:

define PIN_NUM_XCS GPIO_NUM_32

define PIN_NUM_XDCS GPIO_NUM_33