-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Custom Splash Screen #4034
Custom Splash Screen #4034
Conversation
Seems to be a problem with
|
Should be ok now. This PR is fine as it is. |
} | ||
} while (u8g.nextPage()); | ||
delay(CUSTOM_START_BMP_DELAY); | ||
#endif |
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.
Could this perhaps be this instead…
#if ENABLED(CUSTOM_START_BMP)
if (show_bootscreen) {
u8g.firstPage();
do {
u8g.drawBitmapP((128-(CUSTOM_START_BMPWIDTH))/2, (64 - (CUSTOM_START_BMPHEIGHT))/2, CUSTOM_START_BMPBYTEWIDTH, CUSTOM_START_BMPHEIGHT, custom_start_bmp);
} while (u8g.nextPage());
delay(CUSTOM_START_BMP_DELAY);
}
#endif
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.
Of cause.
4637779
to
c534cd1
Compare
Too quick! |
Shouldn't all the parsing be done in Marlin_main.cpp? |
Yes. I tend to agree. This was a matter of style "experimentation" to encapsulate the gcode handler for that command in the class — a thought that we might want to try going that direction for better encapsulation of functionality. Requiring all the GCode handlers to reside in the same file (or compilation unit) as the GCode parser makes It would be cleaner to rename GCode handling functions based on what they do, and then have them take arguments instead of using the GCode parsing functions. But then some of these functions (like the I know we're all still thinking about ways to get the parser to perform better, using tricks like getting all the arguments in advance for each command so the string only ever gets scanned one time. I really like the Matt Roberts' Firmware approach, which should be faster. But it would be a minor overhaul. |
Custom Splash Screen for full graphic displays. Too complicated for the hitachis without knowing what exactly to display. On top of MarlinFirmware#4032 Realisation of an idea from MarlinFirmware#3996
c534cd1
to
02b3d6b
Compare
The A-Z-array will take its space - but i think it would be a good investment for the g-codes with a lot of arguments. G0/G1 will profit a lot. That's what we are looking for. The codes with no, or few, arguments will likely suffer a bit from resetting the big array (26 * 4 byte) |
I was thinking about that. It could just reset the indices that were found instead, but we'd have to store the found-argument indices in yet another little array. |
So #3996 should be altered to utilize this technique, or…? Not sure where we would set a flag to use his custom bootscreen, and we don't want to supplant this one. So… I guess, that PR should drop the custom boot screen and the custom code calculating the centering… and all that can exist in the Cartesio UI fork, not in the main Marlin. |
Custom Splash Screen for full graphic displays.
Too complicated for the hitachis without knowing what exactly to display.
Realisation of an idea from #3996
Used the big Marlin logo as an example.
Custom logo is displayed before the normal Marlin logo. No text. Text can be integrated into the graphic if needed.