Skip to content

Randomize Animation Image Order Instead of Using Consecutive Sequence#3

Open
Padrecc wants to merge 3 commits intoGPeye:mainfrom
Padrecc:main
Open

Randomize Animation Image Order Instead of Using Consecutive Sequence#3
Padrecc wants to merge 3 commits intoGPeye:mainfrom
Padrecc:main

Conversation

@Padrecc
Copy link

@Padrecc Padrecc commented Nov 18, 2025

This update introduces randomized ordering for the animation image frames instead of always displaying them in a fixed, consecutive sequence. At initialization, the image array is rotated by a random offset generated using Zephyr’s sys_rand32_get(), ensuring that each startup begins the animation from a different frame.

Key Improvements

  • Added randomization to image sequence by applying a random rotation to the animation frame array
  • Eliminated reliance on consecutive, predictable start positions
  • Improved user experience by introducing visual variety on each boot
  • Automatic array sizing for better maintainability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant