Notifications
Clear all

0x13 for the dfmini player  

  RSS

jacob
(@jacob)
New Member
Joined: 6 months ago
Posts: 4
2020-05-04 3:29 pm  

how do you set the code for serial write 0x13 and make it work


Quote
triform
(@triform)
Reputable Member
Joined: 1 year ago
Posts: 331
2020-05-04 4:22 pm  

This will send a 0x13 (15 in base 10)

Serial.write(0x13);

 

I think there is a Ardunio library for this module here: https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299


ReplyQuote
jacob
(@jacob)
New Member
Joined: 6 months ago
Posts: 4
2020-05-05 2:28 pm  

ok i will check that out


ReplyQuote
jacob
(@jacob)
New Member
Joined: 6 months ago
Posts: 4
2020-05-05 3:32 pm  

i check it out ad i cant seem to use it with a botton 

if (sensorVal, LOW)
{
myDFPlayer.advertise(1);

}


ReplyQuote
triform
(@triform)
Reputable Member
Joined: 1 year ago
Posts: 331
2020-05-05 3:46 pm  

@jacob

Is that from the code you wrote?  You may need to post the code you are writing for us to get a better context.

"if (sensorVal, LOW)" is not a valid if statement.  Are you wanting to say "if (sensorVal == LOW)" ?

 


ReplyQuote