Notifications
Clear all

0x13 for the dfmini player

5 Posts
2 Users
0 Likes
1,211 Views
jacob
(@jacob)
Member
Joined: 4 years ago
Posts: 3
Topic starter  

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


   
Quote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

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)
Member
Joined: 4 years ago
Posts: 3
Topic starter  

ok i will check that out


   
ReplyQuote
jacob
(@jacob)
Member
Joined: 4 years ago
Posts: 3
Topic starter  

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

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

}


   
ReplyQuote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

@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