Grove MP3 v2 Library
Embed:
(wiki syntax)
Show/hide line numbers
MP3Player_KT403A.h
00001 /* 00002 * MP3Player_KT403A.h 00003 * A library for Grove-Serial MP3 Player V2.0 00004 * 00005 * Copyright (c) 2015 seeed technology inc. 00006 * Website : www.seeed.cc 00007 * Author : Wuruibin 00008 * Created Time: Dec 2015 00009 * Modified Time: 00010 * 00011 * The MIT License (MIT) 00012 * 00013 * Permission is hereby granted, free of charge, to any person obtaining a copy 00014 * of this software and associated documentation files (the "Software"), to deal 00015 * in the Software without restriction, including without limitation the rights 00016 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00017 * copies of the Software, and to permit persons to whom the Software is 00018 * furnished to do so, subject to the following conditions: 00019 * 00020 * The above copyright notice and this permission notice shall be included in 00021 * all copies or substantial portions of the Software. 00022 * 00023 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00024 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00025 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00026 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00027 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00028 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00029 * THE SOFTWARE. 00030 */ 00031 00032 00033 #ifndef __MP3PLAYER_KT403A_H__ 00034 #define __MP3PLAYER_KT403A_H__ 00035 00036 #include <SoftwareSerial.h> 00037 00038 extern SoftwareSerial mp3; 00039 00040 void PlayMP3folder(uint16_t index); 00041 void SelectPlayerDevice(uint8_t device); 00042 void SpecifyMusicPlay(uint16_t index); 00043 void SpecifyfolderPlay(uint8_t folder, uint8_t index); 00044 void PlayPause(void); 00045 void PlayResume(void); 00046 void PlayNext(void); 00047 void PlayPrevious(void); 00048 void PlayLoop(void); 00049 void SetVolume(uint8_t volume); 00050 void IncreaseVolume(void); 00051 void DecreaseVolume(void); 00052 uint8_t QueryPlayStatus(void); 00053 void printReturnedData(void); 00054 00055 00056 #endif
Generated on Fri Jul 15 2022 17:50:43 by 1.7.2