数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

DFR0498 数据表(PDF) 6 Page - DFROBOT

部件名 DFR0498
功能描述  FireBeetle Covers Camera&Audio Media Board SKU:DFR0498
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  DFROBOT [DFROBOT]
网页  https://www.dfrobot.com/
标志 DFROBOT - DFROBOT

DFR0498 数据表(HTML) 6 Page - DFROBOT

Back Button DFR0498 Datasheet HTML 2Page - DFROBOT DFR0498 Datasheet HTML 3Page - DFROBOT DFR0498 Datasheet HTML 4Page - DFROBOT DFR0498 Datasheet HTML 5Page - DFROBOT DFR0498 Datasheet HTML 6Page - DFROBOT DFR0498 Datasheet HTML 7Page - DFROBOT DFR0498 Datasheet HTML 8Page - DFROBOT DFR0498 Datasheet HTML 9Page - DFROBOT DFR0498 Datasheet HTML 10Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 24 page
background image
*
Call the function by pressing user key to control music player
*
The Module would operate as follows when pressed: play test1.wav>>pause
>>continue>>mute>>Volume:50>>stop>>play test2.wav
*/
#include <Wire.h>
#include "DFRobot_IIS.h"
DFRobot_IIS iis;
const int buttonPin = 16;
int i=0;
void setup() {
Serial.begin(115200);
iis.SDCardInit();
// Init SD card
iis.init(AUDIO);
// Init Audio mode
iis.setHeadphonesVolume(50);
// Set Headphones Volume f
rom 0 to 99
iis.setSpeakersVolume(50);
// Set Speakers
Volume f
rom 0 to 99
iis.initPlayer();
// Init Music player
Serial.println("Init player");
iis.playMusic("/test1.WAV");
// Choose music file
Serial.println("Ready to play");
delay(500);
}
void loop(){
static unsigned long timepoint = millis();
static byte count = 0;
if(millis()-timepoint > 200){
if((!digitalRead(buttonPin))&&(i==0||i==2)){
timepoint = millis();
iis.playerControl(PLAY);
// Start or continue playi
ng Music
Serial.println("play");



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com