Makuna / DFMiniMp3

Arduino library for the DFPlayer Mini Mp3 module. Please refer to the Wiki for more details. Please use the GitHub Discussions ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
146 stars 33 forks source link

Support a runtime configurable T_CHIP_VARIANT #157

Open Makuna opened 9 months ago

Makuna commented 9 months ago

User requested the ability to change chip variant at runtime while maintaining a single class type.

typedef DFMiniMp3<HardwareSerial, Mp3Notify, Mp3ChipDynamic> DfMp3; 

Mp3ChipDynamic::setChip(DfMp3_Chip_Original);

or

DfMp3 myMp3();

myMp3.setChip(DfMp3_Chip_Original); // internally calls static Mp3ChipDynamic::setChip

or passed in begin?