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.
I downloaded and installed the Arduino with Stream Core, the NewSoftSerial10c with Arduino Mega/Mega 2560 and Stream support, RogueMP3, and RogueSD libraries. The Really Simple rMP3 Example compiles, but won't upload: Binary sketch size: 6244 bytes (of a 32256 byte maximum) avrdude: stk500_getsync(): not in sync: resp=0x00
Any suggestions?
What version of Arduino are you using?
Using Arduino UNO R3 and Software v1.0
I'm running the Really Simple rMP3 Example with SoftwareSerial lib instead. I'm getting the error
In file included from rMP3_Playback.cpp:2: C:\arduino-1.0.1\libraries\RogueMP3/RogueMP3.h:155: error: conflicting return type specified for 'virtual void RogueMP3::write(uint8_t)' C:\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
Can someone help me? Super thanks !!!!
Bonjour , Même problème , je recherche la solution ….
Merci d avance , pour votre aide
In file included from rMP3_Playback_Example.cpp:1: C:\Documents and Settings\MINILOU\Bureau\ARDUINO\Logiciel\UNO\arduino-1.0.1\libraries\RogueMP3/RogueMP3.h:155: error: conflicting return type specified for 'virtual void RogueMP3::write(uint8_t)' C:\Documents and Settings\MINILOU\Bureau\ARDUINO\Logiciel\UNO\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)
apres de multiple recherche , j 'ai compris que l'erreur venait de la version arduino 1.0.1 et qu avec cette version il lui fallait un retour de taille ! mais cela me donne pas assez d info pour resoudre mon pb . un petit conseil serai bien util….
Hey Marco & Marvin,
I'm still working on getting Arduino 1.0 support complete. In the meantime, use Wiring:
http://wiring.org.co/
You can install it separately from Arduino, and your sketches should be directly portable.