OLED Timing Control

I am currently setting up OLED animations and have found that my boot, font, and in, .bmp files play more than a single time. I haven’t been able to find any documentation pertaining to how the animation is handled. Is there a way to set the animation to only play a single time? Or can you define the amount of time the animation plays for in each instance? In that case, what frame-rate does the OLED play at? Lastly, is it possible to set the animation frame rate to slow down the animation? Thanks!

This page answers most of those questions:

Doesn’t say anything about frame rate though.

You can put something like:

ProffieOSAnimationFrameRate=30

in config.ini (in the font folder) to set the animation frame rate.

1 Like

I should update that POD page. (edit - done)
Imagemagick now uses “magick” instead of “convert”, although I think it’ll still work with a warning that it’s changed.

Anyway, I have recently been doing a bunch of this and I think with even easier steps.
For example, to convert from a looping .bmp to non-looping .pbm looks like this (looks like a lot, but it’s not).
Let’s say you had a looping 128x3648 boot.bmp for example.

  1. Stick a copy of the file in a new, empty working directory, and calculate the number of frames by dividing the total vertical pixels by 32.
    3648/32=114
  2. cd to that directory, then use that number in this command
    magick boot.bmp -crop 1x114@ frame-%04d.png
    This is going to give you 114 files (one per frame) named “frame” with 4 digits and a .png extension.
  3. Then you just tell it to take all the files that start with “frame” and make a .pbm file.
    magick -monochrome frame* boot.pbm