From 5e0cf8eb74f485f87403fee211ab442b1f097322 Mon Sep 17 00:00:00 2001 From: kempe63 <78020007+kempe63@users.noreply.github.com> Date: Sun, 12 Nov 2023 20:02:01 +0000 Subject: [PATCH] Update myHal.cpp_example.txt Added IO_I2CDFPlayer example --- myHal.cpp_example.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/myHal.cpp_example.txt b/myHal.cpp_example.txt index 5533554..6363674 100644 --- a/myHal.cpp_example.txt +++ b/myHal.cpp_example.txt @@ -234,6 +234,23 @@ void halSetup() { // DFPlayer::create(10000, 10, Serial1); + //======================================================================= + // Play mp3 files from a Micro-SD card, using a DFPlayer MP3 Module on a SC16IS752 I2C Dual UART + //======================================================================= + // DFPlayer via NXP SC16IS752 I2C Dual UART. Each device has 2 UARTs on a single I2C address + // Total nr of devices on an I2C bus is 16, with 2 UARTs on each address making a total of 32 UARTs per I2C bus + // I2C address range 0x48 - 0x57 + // I2CDFPlayer::create(1st vPin,vPins, I2C address, UART ch); + + // I2CDFPlayer::create(10000, 10, 0x48, 0); + // I2CDFPlayer::create(10010, 10, 0x48, 1); + + // Multiplexer example + // I2CDFPlayer::create(10020, 10, {I2CMux_0, SubBus_0, 0x50}, 0); + + + + //======================================================================= // 16-pad capacitative touch key pad based on TP229 IC. //=======================================================================