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

Method sendData

src/DFPlayerMini_Fast.cpp:924–943  ·  view source on GitHub ↗

/ ! @brief Send a config/command packet to the MP3 player. */ /

Source from the content-addressed store, hash-verified

922 */
923 /**************************************************************************/
924void DFPlayerMini_Fast::sendData()
925{
926 _serial->write(sendStack.start_byte);
927 _serial->write(sendStack.version);
928 _serial->write(sendStack.length);
929 _serial->write(sendStack.commandValue);
930 _serial->write(sendStack.feedbackValue);
931 _serial->write(sendStack.paramMSB);
932 _serial->write(sendStack.paramLSB);
933 _serial->write(sendStack.checksumMSB);
934 _serial->write(sendStack.checksumLSB);
935 _serial->write(sendStack.end_byte);
936
937 if (_debug)
938 {
939 Serial.print("Sent ");
940 printStack(sendStack);
941 Serial.println();
942 }
943}
944
945
946

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected