Skip to content
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

Fix blocking::Display::set_refresh_rate() #128

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

mattheww
Copy link
Contributor

@mattheww mattheww commented Feb 3, 2024

The calculation in display::blocking::Display::set_refresh_rate was wrong for the micro:bit v2.

For example, set_refresh_rate(60) gave a refresh rate of 36Hz rather than 60Hz.

To see the difference, add

  display.set_refresh_rate(60);

to examples/display-blocking/src/main.rs

The calculation was wrong for the micro:bit V2.
@lulf lulf added this pull request to the merge queue Feb 3, 2024
Merged via the queue into nrf-rs:main with commit d4f3bfa Feb 3, 2024
9 checks passed
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