Skip to content

Commit

Permalink
adds functions to enable/disable the dac (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisfeld authored and Makuna committed Nov 1, 2019
1 parent 4cfd08b commit e5608bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ getFolderTrackCount KEYWORD2
getTotalTrackCount KEYWORD2
getTotalFolderCount KEYWORD2
playAdvertisement KEYWORD2
stopAdvertisement KEYWORD2
stopAdvertisement KEYWORD2
enableDac KEYWORD2
disableDac KEYWORD2

#######################################
# Constants (LITERAL1)
Expand Down
10 changes: 10 additions & 0 deletions src/DFMiniMp3.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@ template<class T_SERIAL_METHOD, class T_NOTIFICATION_METHOD> class DFMiniMp3
sendPacket(0x15);
}

void enableDac()
{
sendPacket(0x1A, 0x00);
}

void disableDac()
{
sendPacket(0x1A, 0x01);
}

private:
static const uint16_t c_msSendSpace = 50;

Expand Down

0 comments on commit e5608bd

Please sign in to comment.