|
|
发表于 2014-3-30 18:36:07
|
显示全部楼层
tmrpcm.play("filename"); plays a file
tmrpcm.speakerPin = 11; set to 5,6,11 or 46 for Mega, 9 for Uno, Nano, etc
tmrpcm.disable(); disables the timer on output pin and stops the music
tmrpcm.stopPlayback(); stops the music, but leaves the timer running
tmrpcm.isPlaying(); returns 1 if music playing, 0 if not
tmrpcm.pause(); pauses/unpauses playback
tmrpcm.volume(0); 1(up) or 0(down) to control volume
所有控制就這些而已 |
|