Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <MP3.h>
- /** define mp3 class */
- MP3 mp3;
- void setup() {
- /** begin function */
- mp3.begin();
- /** set MP3 Shield CYCLE mode */
- mp3.set_mode(MP3::SINGLE);
- /** set volume */
- mp3.volume(0x1F);
- /** play music in USB Disk */
- mp3.play_usb_disk(0x0001);
- }
- void loop() {
- delay(10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement