using dfplayer with rgb leds
hello,
i having difficulty cycling through rgb colors button while playing mp3 file dfplayer. 1 color shows when press button not change colors. code cycling through color works implement dfplayer , code in, not work. here dfplayer code.
and ived tried
i thinking library causing issue?
i having difficulty cycling through rgb colors button while playing mp3 file dfplayer. 1 color shows when press button not change colors. code cycling through color works implement dfplayer , code in, not work. here dfplayer code.
code: [select]
#include <dfplayer_mini_mp3.h>
#include <softwareserial.h>
void setup () {
serial.begin (9600);
mp3_set_serial (serial); //set serial dfplayer-mini mp3 module
mp3_set_volume (50);
}
void loop () {
mp3_play (1); //play 0001.mp3
delay (3000); //10 sec, time delay allow 0001.mp3 finish playing
mp3_play (2);
delay (5000);
}
and ived tried
code: [select]
#include <dfplayer_mini_mp3.h>
#include <softwareserial.h>
softwareserial myserial(2, 7); // rx, tx
void setup () {
serial.begin (9600);
serial.begin(9600);
myserial.begin (9600);
mp3_set_serial (myserial); //set serial dfplayer-mini mp3 module
mp3_set_volume (60);
void loop () {
mp3_play (1); //play 0001.mp3
delay (3000); //10 sec, time delay allow 0001.mp3 finish playing
mp3_play (2);
delay (5000);
}
i thinking library causing issue?
Arduino Forum > Using Arduino > Programming Questions > using dfplayer with rgb leds
arduino
Comments
Post a Comment