• 大小: 14KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: DFPlayer  Mini  

资源简介

这是arduino的MP3播放模块的库文件。基本教程在网上都可以搜到。这是arduino程序需要的库文件。大家可以下载使用。用法: 解压这个东西。直接把解压出来的 master后缀的这个文件夹复制到arduino安装目录下的library目录下。大概是这个目录。大家可以找找。

资源截图

代码片段和文件信息

/*******************************************************************************
 * Copyright (C) 2014 DFRobot        *
 *        *
 * DFPlayer_Mini_Mp3 This library provides a quite complete function for      * 
 * DFPlayer mini mp3 module.                                                   *
 * www.github.com/dfrobot/DFPlayer_Mini_Mp3 (github as default source provider)*
 *  DFRobot-A great source for opensource hardware and robot.                  *
 *                                                                             *
 * This file is part of the DFplayer_Mini_Mp3 library.                         *
 *                                                                             *
 * DFPlayer_Mini_Mp3 is free software: you can redistribute it and/or          *
 * modify it under the terms of the GNU Lesser General Public License as       *
 * published by the Free Software Foundation either version 3 of              *
 * the License or any later version.                                          *
 *                                                                             *
 * DFPlayer_Mini_Mp3 is distributed in the hope that it will be useful        *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of              *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
 * GNU Lesser General Public License for more details.                         *
 *                                                                             *
 * DFPlayer_Mini_Mp3 is distributed in the hope that it will be useful        *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of              *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
 * GNU Lesser General Public License for more details.                         *
 *                                                                             *
 * You should have received a copy of the GNU Lesser General Public            *
 * License along with DFPlayer_Mini_Mp3. If not see                           *
 * .                                             *
 ******************************************************************************/

/*
 * name: DFPlayer_Mini_Mp3
 * version: 1.0
 * Author: lisper 
 * Date: 2014-05-22
 * Description: mp3 library for DFPlayer mini board
 * note: mp3 file must put into mp3 folder in your tf card
 */


#include 
#include 
//#include  “DFPlayer_Mini_Mp3.h“

extern uint8_t send_buf[10];
extern uint8_t recv_buf[10];

static void(*send_func)() = NULL;
static HardwareSerial * _hardware_serial = NULL;
static SoftwareSerial * _software_serial = NULL;
static boolean is_reply = false;

//
void mp3_set_reply (boolean state) {
is_reply = state;
send_buf[4] = is_reply;
}

//
static void fill_uint16_bigend (uint8_t *thebuf uint16_t data) {
*thebuf = (uint8_t)(data>>8);
*(thebuf+1) = (uint8

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\
     文件        5791  2014-11-07 10:10  DFPlayer-Mini-mp3-master\DFPlayer_Mini_Mp3.cpp
     文件        4972  2014-11-07 10:10  DFPlayer-Mini-mp3-master\DFPlayer_Mini_Mp3.h
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\examples\
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\examples\DFPlayer_Mini_Test\
     文件        7445  2015-05-29 10:10  DFPlayer-Mini-mp3-master\examples\DFPlayer_Mini_Test\DFPlayer_Mini_Test.ino
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\examples\DFPlayer_PlayAll_SoftwareSerial\
     文件        3036  2015-05-29 10:20  DFPlayer-Mini-mp3-master\examples\DFPlayer_PlayAll_SoftwareSerial\DFPlayer_PlayAll_SoftwareSerial.ino
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\examples\DFPlayer_sample\
     文件        3498  2015-05-29 10:15  DFPlayer-Mini-mp3-master\examples\DFPlayer_sample\DFPlayer_sample.ino
     目录           0  2015-05-29 10:21  DFPlayer-Mini-mp3-master\examples\DFPlayer_SoftwareSerial\
     文件        3592  2015-05-29 10:16  DFPlayer-Mini-mp3-master\examples\DFPlayer_SoftwareSerial\DFPlayer_SoftwareSerial.ino
     文件        1079  2014-11-07 10:10  DFPlayer-Mini-mp3-master\keywords.txt
     文件        7651  2014-11-07 10:10  DFPlayer-Mini-mp3-master\license.txt
     文件         271  2014-11-07 10:10  DFPlayer-Mini-mp3-master\README.md

评论

共有 条评论