MCPcopy Create free account
hub / github.com/PowerBroker2/DFPlayerMini_Fast / volumeAdjustSet

Method volumeAdjustSet

src/DFPlayerMini_Fast.cpp:497–509  ·  view source on GitHub ↗

/ ! @brief Specify volume gain. @param gain The specified volume gain. */ /

Source from the content-addressed store, hash-verified

495 */
496 /**************************************************************************/
497void DFPlayerMini_Fast::volumeAdjustSet(uint8_t gain)
498{
499 if (gain <= 31)
500 {
501 sendStack.commandValue = dfplayer::VOL_ADJ;
502 sendStack.feedbackValue = dfplayer::NO_FEEDBACK;
503 sendStack.paramMSB = 0;
504 sendStack.paramLSB = dfplayer::VOL_ADJUST + gain;
505
506 findChecksum(sendStack);
507 sendData();
508 }
509}
510
511
512

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected