| 数据搜索系统,热门电子元器件搜索 |
|
DFR0498 数据表(PDF) 6 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0498 数据表(HTML) 6 Page - DFROBOT |
|
6 / 24 page ![]() * 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"); |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |