Minor improvements and fixes to this

This commit is contained in:
askiiart 2023-08-28 07:50:59 -05:00
parent 76747a0992
commit 9e68c71f55
No known key found for this signature in database
GPG key ID: 66BA0F77DCABF974
2 changed files with 9 additions and 7 deletions

View file

@ -337,8 +337,9 @@
<p><strong>Here's a breakdown of that.</strong></p>
<h3 id="the-start">The start</h3>
<ul>
<li><code>#pragma once</code>: I don't know what this does, but
it's in both animated and static boot screens.</li>
<li><code>#pragma once</code>: Just generic C/C++ stuff to make
sure the file is only included once, nothing interesting. (<a
href="https://en.wikipedia.org/wiki/Pragma_once">Wikipedia</a>)</li>
<li><code>#define CUSTOM_BOOTSCREEN_ANIMATED</code>: Sets it to
be an animated, not static, boot screen.</li>
<li><code>define CUSTOM_BOOTSCREEN_TIMEOUT 0</code>: The extra
@ -453,7 +454,8 @@
decimal, unlike <a
href="https://marlinfw.org/tools/u8glib/converter.html"><code>converter.html</code></a>
would have generated. It's actually 3 frames (0.6 seconds) of
Bad Apple (albeit a bit messed up).</p>
Bad Apple (albeit a bit messed up for unknown reasons, but not
because I'm using <code>convert</code> instead).</p>
<h3 id="the-end">The end</h3>
<div class="sourceCode" id="cb3"><pre
class="language-cpp"><code class="language-cpp"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="pp">#ifdef CUSTOM_BOOTSCREEN_ANIMATED_FRAME_TIME</span></span>
@ -489,7 +491,7 @@
<code>custom_start_bmp1</code>)</li>
<li>Add the ending code.</li>
</ol>
<h2 id="automatically">Automatically</h2>
<h3 id="automatically">Automatically</h3>
<p>Note: This only allows for 5 FPS, no more, no less. However,
I may edit <code>animator.py</code> to have an adjustable
framerate.</p>

View file

@ -328,7 +328,7 @@ const unsigned char custom_start_bmp1[] PROGMEM = {
### The start
- `#pragma once`: I don't know what this does, but it's in both animated and static boot screens.
- `#pragma once`: Just generic C/C++ stuff to make sure the file is only included once, nothing interesting. ([Wikipedia](https://en.wikipedia.org/wiki/Pragma_once))
- `#define CUSTOM_BOOTSCREEN_ANIMATED`: Sets it to be an animated, not static, boot screen.
- `define CUSTOM_BOOTSCREEN_TIMEOUT 0`: The extra time that the last frame is held for.
- `#define CUSTOM_BOOTSCREEN_FRAME_TIME 200`: How many milliseconds each frame shows for. For a standard 128x64 display, 200ms is about as fast as it can go.
@ -424,7 +424,7 @@ Which ends up looking like this:
Rather than using Marlin's official converter, you can just take the array from the file generated by `convert frame.png frame.xmp`. Very useful for automation.
Note that the earlier example was generated using `convert`, so it's in hexadecimal format rather than decimal, unlike [`converter.html`](https://marlinfw.org/tools/u8glib/converter.html) would have generated. It's actually 3 frames (0.6 seconds) of Bad Apple (albeit a bit messed up).
Note that the earlier example was generated using `convert`, so it's in hexadecimal format rather than decimal, unlike [`converter.html`](https://marlinfw.org/tools/u8glib/converter.html) would have generated. It's actually 3 frames (0.6 seconds) of Bad Apple (albeit a bit messed up for unknown reasons, but not because I'm using `convert` instead).
### The end
@ -457,7 +457,7 @@ If `CUSTOM_BOOTSCREEN_ANIMATED_FRAME_TIME` exists, the time for each frame is se
2. Generate each frame's byte array using [`converter.html`](https://marlinfw.org/tools/u8glib/converter.html), then paste it into the file. Adjust the naming as needed (remember, it goes `custom_start_bmp`, `custom_start_bmp0`, `custom_start_bmp1`)
3. Add the ending code.
## Automatically
### Automatically
Note: This only allows for 5 FPS, no more, no less. However, I may edit `animator.py` to have an adjustable framerate.