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

Method volume

src/DFPlayerMini_Fast.cpp:264–276  ·  view source on GitHub ↗

/ ! @brief Set the volume to a specific value out of 30. @param volume The volume level (0 - 30). */ /

Source from the content-addressed store, hash-verified

262 */
263 /**************************************************************************/
264void DFPlayerMini_Fast::volume(uint8_t volume)
265{
266 if (volume <= 30)
267 {
268 sendStack.commandValue = dfplayer::VOLUME;
269 sendStack.feedbackValue = dfplayer::NO_FEEDBACK;
270 sendStack.paramMSB = 0;
271 sendStack.paramLSB = volume;
272
273 findChecksum(sendStack);
274 sendData();
275 }
276}
277
278
279

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected