Skip to content

Commit

Permalink
Update myHal.cpp_example.txt
Browse files Browse the repository at this point in the history
Added IO_I2CDFPlayer example
  • Loading branch information
kempe63 authored Nov 12, 2023
1 parent 44ce1c0 commit 5e0cf8e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions myHal.cpp_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//=======================================================================
Expand Down

0 comments on commit 5e0cf8e

Please sign in to comment.