jakes0ft / usaber Goto Github PK
View Code? Open in Web Editor NEWUniversal Saber Library for Arduino
License: GNU General Public License v3.0
Universal Saber Library for Arduino
License: GNU General Public License v3.0
Hi again!
I've been trying to make DFPlayer work with no luck. Everything is wired correctly (in fact, if I use DIYuniSoundPlayer it works, more or less), the program compiles (DFPlayer_SoundTest example) and runs, all the message are shown through the monitor but nothing sounds.
Any idea? Has it ever worked?
Thanks!
Hi, USaber won't compile for me, I'm wondering if it's a version or compiler issue. I'm just compiling the WT588 player example.
from /opt/arduino-1.8.0/libraries/USaber/USaber.h:59,
from /home/rob/Arduino/sketch_feb19a/sketch_feb19a.ino:6:
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:134:9: error: 'DIYinoSoundSerial' does not name a type
inline DIYinoSoundSerial * getSerial() {
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:605:2: error: 'DIYinoSoundSerial' does not name a type
DIYinoSoundSerial * mp3Serial;
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In constructor 'DFPlayer::DFPlayer()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:125:9: error: 'class DFPlayer' has no member named 'mp3Serial'
this->mp3Serial = NULL;
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In destructor 'DFPlayer::~DFPlayer()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:129:15: error: 'mp3Serial' was not declared in this scope
if (NULL != mp3Serial) {
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:130:17: error: 'class DFPlayer' has no member named 'mp3Serial'
delete this->mp3Serial;
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::setSerial(uint8_t, uint8_t, bool)':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:145:21: error: 'class DFPlayer' has no member named 'mp3Serial'
if (NULL != this->mp3Serial) {
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:146:17: error: 'class DFPlayer' has no member named 'mp3Serial'
delete this->mp3Serial;
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:149:9: error: 'class DFPlayer' has no member named 'mp3Serial'
this->mp3Serial = new DIYinoSoundSerial(receivePin, transmitPin);
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:149:25: error: expected type-specifier before 'DIYinoSoundSerial'
this->mp3Serial = new DIYinoSoundSerial(receivePin, transmitPin);
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:151:9: error: 'class DFPlayer' has no member named 'mp3Serial'
this->mp3Serial->begin(9600);
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'uint8_t DFPlayer::updateFifoCount()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:187:21: error: 'mp3Serial' was not declared in this scope
this->fifoCount = mp3Serial->available();
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::send()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:263:9: error: 'class DFPlayer' has no member named 'mp3Serial'
this->mp3Serial->write(this->sendBuffer, DFPLAYER_BUFFER_LENGTH);
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::receive()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:278:41: error: 'class DFPlayer' has no member named 'mp3Serial'
while (not isNoReceiveBit() and this->mp3Serial->available()
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:279:16: error: 'class DFPlayer' has no member named 'mp3Serial'
and (this->mp3Serial->available() % DFPLAYER_BUFFER_LENGTH == 0)
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:281:4: error: 'mp3Serial' was not declared in this scope
mp3Serial->readBytesUntil(0xEF, buffPtr, DFPLAYER_BUFFER_LENGTH);
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:289:27: error: 'class DFPlayer' has no member named 'mp3Serial'
this->fifoCount = this->mp3Serial->available();
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'uint16_t DFPlayer::getCurrentTrack()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:362:16: error: 'class DFPlayer' has no member named 'mp3Serial'
while (this->mp3Serial->available()
^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:363:15: error: 'class DFPlayer' has no member named 'mp3Serial'
and (this->mp3Serial->available() % DFPLAYER_BUFFER_LENGTH == 0)) {
^
exit status 1
Error compiling for board Arduino Leonardo.```
Have you seen this one before? Arduino 1.8.
Hi!
I'm running the example MPU6050MotionManager and when I swing or clash I'm always getting Large. I played with different thresholds but I didn't make it work.
Could you pleas help me to find out what I'm missing?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.