final groupe 1

Files at this revision

API Documentation at this revision

Comitter:
GrandDiego
Date:
Sun Feb 03 19:36:20 2019 +0000
Parent:
0:62b52a8325e3
Commit message:
final groupe 1

Changed in this revision

DFPlayerMini.cpp Show annotated file Show diff for this revision Revisions of this file
DFPlayerMini.h Show annotated file Show diff for this revision Revisions of this file
--- a/DFPlayerMini.cpp	Tue Nov 22 17:00:13 2016 +0000
+++ b/DFPlayerMini.cpp	Sun Feb 03 19:36:20 2019 +0000
@@ -187,7 +187,7 @@
 }
 
 void DFPlayerMini::mp3_single_loop (uint8_t state) {
-    mp3_send_cmd (0x19, !state);
+    mp3_send_cmd (0x11, !state);
 }
 
 void DFPlayerMini::mp3_single_play (uint16_t num) {
--- a/DFPlayerMini.h	Tue Nov 22 17:00:13 2016 +0000
+++ b/DFPlayerMini.h	Sun Feb 03 19:36:20 2019 +0000
@@ -34,8 +34,8 @@
 // ===========================================================================
 // Just a simple library for DFPlayer Mini porting from DFPlayer library V2.0.
 // (https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299)
-#ifndef MBED_SHIFTREG_H
-#define MBED_DFPLAYERMINI_H
+#include <stdio.h>
+#include "mbed.h"
 
 class DFPlayerMini {
 public:
@@ -78,6 +78,4 @@
     void send_func ();
     void mp3_send_cmd (uint8_t cmd, uint16_t arg);
     void mp3_send_cmd (uint8_t cmd);
-};
- 
-#endif
\ No newline at end of file
+};
\ No newline at end of file