-
Couldn't load subscription status.
- Fork 5
Arduino AVR chip - logging - compiling error #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add changePending = true so that stop command will be sent to go to IDLE state
Fix hexadecimal output in logging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This getTrackCount code was previously imported then modified so the code portion moved to the cpp ... like the other methods.
|
Thanks! I added some marketing material here: |
|
Great ... Nice work ... Thanks for the link.
I merged your updates, but I won't have time to test the Particle side
again for a few days.
I've been developing user interfaces for my Particle devices via
HTML/JavaScript files. Here is a screen shot that I can share.
In this example:
- The HTML interfaces with "particle.io".
- My Particle firmware defines a *Particle variable* that exposes a JSON
string that the HTML parses with jQuery to display "door status"
information for the doors.
- My Particle firmware defines a *Particle function* that activates the
garage door openers based on a string submitted by the HTML when an
"Action" button is pressed.
I've never worked with Arduino devices ... Is there any equivalent to
Particle functions and Particle variables on the Arduino side? If not,
DFPlay examples "doorAlarm.ino", "playSelection.ino". and "playList.ino"
will not work on the Arduino side because those examples use Particle
functions to allow the user to control the DFPlayer.
[image: image.png]
…On Fri, Sep 7, 2018 at 1:03 PM FedericoBusero ***@***.***> wrote:
Thanks!
I added some marketing material here:
https://community.blynk.cc/t/audio-mp3-music-esp8266-dfrobot-dfplayer-mini-music-player-widget-wifi-nodemcu-wemos-d1/28513
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQ3oFiYCC8zlWyVZ-p5wg04SymigrHaAks5uYrTogaJpZM4WdhaL>
.
--
Rodney Palmer ([email protected])
Tel: 218 834 6337
Cell: 218 260 2122
|
I found that the logging functions in the library were only compatible with some chipsets, not all. The problem is that on AVR chips (such as the popular Arduino Uno, Arduino Nano, ...) the function Serial.printf hasn't been implemented. This is because of the very limited RAM of those chips.
So, I made a new function to do the logging, as it's always nearly the same. In the function only print and println are being used. I have put an ifdef for Particle. In fact you could probably delete your printf code and use the Arduino code (if the F() macro is available), but this is maybe not so efficient regarding network traffic.