8000 Add 1Hz clock tick & use it for batt gauge updates by maks · Pull Request #130 · xiphonics/picoTracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add 1Hz clock tick & use it for batt gauge updates #130

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 14 commits into from
Feb 29, 2024
Merged

Conversation

maks
Copy link
Collaborator
@maks maks commented Feb 16, 2024

This adds a new OnClockTick() callback method available to implemented by all View sub classes that gets called from the main loop at approximately 1Hz, allowing UI code that needs to update at a regular rate. As an example, the first usage of this is the newly added battery gauge on the Song screen. Eventually it should likely be on every screen and so should move to the View parent class.

This also slightly relocates the battery gauge to the top line to be more nicely layed out as it can now be shown when the playback UI next to it is not when project is not playing back.

Unfortunately this is quite invasive change as all View sub classes now need to declare at least a virtual empty impl of the new callback method.

Note: currently this is stacked on the prev PR branch that adds the battery gauge.

Fixes: #129

@maks maks requested a review from democloid February 16, 2024 10:55
@maks maks mentioned this pull request Feb 16, 2024
maks added 2 commits February 18, 2024 15:19
eg we draw the batt during normal screen redraws when user move cursor
as well as every 1 (sec) clock tick
@maks maks changed the base branch from add-battery-display to master February 29, 2024 22:14
@maks maks merged commit 729b0e0 into master Feb 29, 2024
@maks maks deleted the add-mainloop-timer branch February 29, 2024 22:15
djdiskmachine pushed a commit to djdiskmachine/picoTracker that referenced this pull request Apr 3, 2024
clock tick initially used for batt gauge updates
maks added a commit that referenced this pull request Oct 23, 2024
* "electric piano" init patch for opal instruments
* fix algo display vals, only support 2OP FM
* fix bug in setting operator output levels
* fix to use currently playing note for note-Off opal cmd
* add Gate-off cmd support to OpalInstrument
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.

Add new clock signal for use outside of project playback
2 participants
0