资源简介
这是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 DFPla
文件 5791 2014-11-07 10:10 DFPla
文件 4972 2014-11-07 10:10 DFPla
目录 0 2015-05-29 10:21 DFPla
目录 0 2015-05-29 10:21 DFPla
文件 7445 2015-05-29 10:10 DFPla
目录 0 2015-05-29 10:21 DFPla
文件 3036 2015-05-29 10:20 DFPla
目录 0 2015-05-29 10:21 DFPla
文件 3498 2015-05-29 10:15 DFPla
目录 0 2015-05-29 10:21 DFPla
文件 3592 2015-05-29 10:16 DFPla
文件 1079 2014-11-07 10:10 DFPla
文件 7651 2014-11-07 10:10 DFPla
文件 271 2014-11-07 10:10 DFPla
- 上一篇:STM32F4读写SD2405实时时钟程序
- 下一篇:Windows 7 OEM证书
相关资源
- MiniGUI上的全能中英文输入法
- ALIENTEK MINISTM32 实验3 串口实验
- 基于minigui的触摸屏软键盘设计
- 力天电子AVR源代码
- libpng-1.0.10rc1.tar.tar
- minidwep-gtk安装包
- mini2440裸机实现简易u-boot代码.rar
- mini2440实现采集摄像头数据在开发板的
- Qt5.5 代码实现记事本程序 MiniText
- DELL H310MINI RAID 驱动for 2008 64 位.rar
- .小型虚拟超市管理系统miniVS的状态图
- mini PGP免安装
- 嵌入式linux之mini2440的hc-sr04超声波驱动
- Minix3 源码解析精华!
- Data Mining: Concepts and Techniques英文第二
- 绝版 cdlinux 0.9.7.1 集成 minidwep 40420 无
- ImageNet_mini数据集链接
- 企业招聘小程序Minihr
- discuz转小程序亲测可用非minibbs
- 数据挖掘概念与技术第三版课后答案
- 通过alpha-belta剪枝的极大极小值算法实
- mini编码器说明书
- MiniComm WIN版 绿色
- QX-mini51开发板资料.zip
- miniFilter(所有框架代码以及对应的
- Window文件监控微过滤驱动
- mini2440简易bootloader源码
- CentOS-6.6-x86_64-minimal.iso
- 基于STM32F030的PCM5242 miniDSP驱动配置
- mini pcie 金手指封装
评论
共有 条评论