AudioPro.begin()
AudioPro.begin()
作用
此函数可以对AudioPro模块进行初始化,并获得初始化结果
参数
无
返回值
是否初始化成功,成功返回1,失败返回0
示例
#include <Microduino_AudioPro.h>
AudioPro midiPlayer;
void setup()
{
Serial.begin(115200);
delay(200);
if (! midiPlayer.begin()) { // initialise the music player
Serial.println(F("Couldn't find VS1053, do you have the right pins defined?"));
while (1);
}
Serial.println(F("VS1053 found"));
}
其他
- reset()
- end()
- useInterrupt()
- detachInterrupt()
- stopped()
- stopPlaying()
- paused()
- pausePlaying()
- volumeUp()
- volumeDown()
- getVolume()
- setVolume()
- getPlaySpeed()
- setPlaySpeed()
- getAmplifier()
- setAmplifier()
- getMonoMode()
- setMonoMode()
- decodeTime()