baldram / ESP_VS1053_Library

A library for VS1053 MP3 Codec Breakout adapted for Espressif ESP8266 and ESP32 boards.
https://platformio.org/lib/show/1744/ESP_VS1053_Library
GNU General Public License v3.0
114 stars 36 forks source link

Set SCI_CLOCKF as per data sheet, add defines for clock parameters #107

Open episource opened 1 year ago

episource commented 1 year ago

This PR changes the SCI_CLOCKF register configuration to match the data sheet recommendations (section 4.2, SCI_CLOCKF=0x8800).

Also defines for associated clock parameters (SCI_CLOCKF, SLOW_SCK, FAST_SCK) are added.

Effect on VS1053B operation of this PR: The CLKI frequency of VS1053B will be increased by 0.5xXTALI. This means slightly faster operation, faster SPI, but potentially more power consumption.

This is a backwards compatible change. No need to change sketches using this library.