Plug it in. Turn it on.
#include <NewSoftSerial.h> #include <RogueMP3.h> NewSoftSerial rmp3_serial(6, 7); RogueMP3 rmp3(rmp3_serial); void setup() { Serial.begin(9600); rmp3_serial.begin(9600); rmp3.sync(); rmp3.playfile("/Daft Punk - Technologic.mp3"); } void loop() { }
Discussion
I downloaded the NewSoftSerial, RogueMP3, and RogueSD libraries and put the downloaded directories into the Libraries directory of the Arduino 21 directory on my desktop. I tried to compile but the software keeps reporting errors in the NewSoftSerial Library.
What should I do?
Mark
I haven't yet tested against Arduino 0021 - Can you post the errors you're getting?
b
I am getting the following error when compiling
E:\arduino-0021\libraries\RogueMP3\RogueMP3.cpp: In member function 'int RogueMP3::_comm_peek()': E:\arduino-0021\libraries\RogueMP3\RogueMP3.cpp:663: error: 'class Stream' has no member named 'peek'
Yeah… They aren't so swift over at the “Arduino Compound”.
They added peek(), then removed it.
You'll have to add this: Arduino Serial Base Class
Essentially, it's just the existing hardware core with peek (FINALLY) enabled. Select your (Stream) version in the boards section after following the installation instructions.
b
Once I installed the “Arduino Serial Base Class”, I cannot upload to the board and I get the following error. Binary sketch size: 1018 bytes (of a 28672 byte maximum) avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51 Now, even after removing the “serial class” I get the same error.