Skip to content

update from thing pulse #4

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 45 commits into from
Dec 26, 2021
Merged

Conversation

mc-hamster
Copy link
Member

No description provided.

marcelstoer and others added 30 commits April 22, 2020 23:11
* Fix problem of transitions getting faster with each call of setTargetFPS

    On my app I noticed that each time I called setTargetFPS the transitions
    would become faster and faster, until finally they don't even take one
    frame.  The problem was that the FP math for calculating changeRatio
    would (because of rounding err) keep shrinking the number of ticksPerFrame.

    This change instead computs ticksPerFrame/perTransition based on the
    requested display time, so error can't accumulate from a series of calls.

    (In my app I only bump up target FPS before each transition but then
    I lower it down again afterwards to save CPU)

* Allow this library to work on other Arduinos (NRF52) besides ESPs

* Let users specify -1 for scl/sda to mean 'use current value'
(Also makes it easier to share code when users of library are targeting
multiple platforms)

* fix missing dependency, std::max is defined in algorithm
Code provided by @mtsem.

Fixes #329
@mc-hamster mc-hamster merged commit a17c51a into meshtastic:update-from-head Dec 26, 2021
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.