I apologize in advance because I feel this is going to be a long one. @profezzorn , if you only feel like replying to one a day (or even less/more days), it’s fine. I am not going anywhere and I would like to learn so I can create (hopefully) some fun prop files.
I have a few “What is the difference” questions:
- The first one is about error reporting.
I assume these all send some “text” to the serial monitor? Do some send errors to OLED?
I also assume thatln
is for “line new” or “next line” but what is the difference betweenprint("some_text\n")
&println("some_text")
, I am thinking flash memory usage ? Or when do I choose one over the other ?
I believe that some of them will only show/hide the “text” depending on wether#define DISABLE_DIAGNOSTIC_COMMANDS
and/or#define ENABLE_DEBUG
is defined or not, but which one for which define ?
Serial.println("Dual Push Detected");
PVLOG_NORMAL.print("Maximum Volume \n");
PVLOG_NORMAL << "** Entering ProffieOS Menu System\n";
PVLOG_DEBUG << "** STOPPING timer.\n";
PVLOG_VERBOSE << "The Force will be with you...always.\n";
PVLOG_STATUS << "Blade Detected\n";
STDOUT << "Turning off " << location << "\n";
STDOUT.print("Minimum Volume \n");
STDOUT.println(battery_monitor.battery_percent())
STDERR << "Unknown variable source: " << variable_source << "\n";
Are there other error reporting ways that I should/could know about?
- Some error messages in @NoSloppy 's props start with
"**", "***", "****", "*****"
Do the different multiple of “*” mean something ?
That is it for errors reporting, but the following have been brewing in my mind for some time.
- What is the difference between these:
hybrid_font.PlayPolyphonic(&SFX_sound_name);
hybrid_font.PlayPolyphonic(SFX_sound_name);
//but no "&" before SFX, I can't find where I saw it anymore, but I know it was in official ProffieOS files, or did I dream it? What is "&" for ?
hybrid_font.PlayCommon(&SFX_sound_name); // this one I only noticed today as I was writing 1) above.
-
Event
&Event2
most props have all of the “action” happening inEvent2
. I only found 2 that have something inEvent
(SaberBlasterProp from dual_prop.h & micom.h - of course multi_prop.h as well, since it was based on SaberBlasterProp). I was under the impression that the bulk of the “action” would be underEvent
,Event2
would be for the “exception”, I guess it is just the opposite? -
Last one is about effect location. I understand that location is whether or not the effect will show on the blade(s), but what are the different values that location can have and what does those values mean ?
As always, thank you for reading so far & thank you for you time and dedication.