Skip to content

Don't reset scroll index if loop is False #120

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

Merged
merged 2 commits into from
Jul 15, 2025

Conversation

WanderingStar
Copy link
Contributor

If we reset the scroll index, we keep looping because the scroll index (-1) isn't at the end of the text.

If we reset the scroll index, we keep looping because the scroll index (-1) isn't at the end of the text.
@ladyada ladyada requested a review from FoamyGuy July 15, 2025 12:21
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WanderingStar thanks for the fix!

Looks good to me. I verified the issue with loop=False, and this fix with a 14x4 segment feathwing and rp2040 feather.

@FoamyGuy FoamyGuy merged commit 43817d1 into adafruit:main Jul 15, 2025
1 check passed
@WanderingStar
Copy link
Contributor Author

Thanks. My tests were on a 1.2" 7-segment backpack and a Feather Huzzah 32 v2.

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 16, 2025
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.

2 participants