-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add Clock Multiplier & Divider #319
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebased to latest |
…stants" This reverts commit 327c3cc.
…nsaver" This reverts commit 0f21705.
…irst and auto_show arguments to centre_text, modify all extant calls to centre_text to use the correct auto_show behaviour
…sociated changes to other scripts
…eeded. Fix a bug in the save_config declaration
…ignal for 1s, automatically reset all channels on stop
…t input, and persistence
…dditional comments for clarity. Add missing docstrings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One last MR for 2023!
Adds a combined clock multiplier & divider script. Pretty standard functionality; each output can have an independently-controlled modifier from
[/12, /8, /6, /5, /4, /3, /2, x1, x2, x3, x4, x5, x6, x8, x12]
.DIN
accepts the incoming clock signal, which cannot be slower than 1Hz.AIN
accepts a digital reset signal.Each output is a ~50% duty cycle square wave with a rate equal to the incoming clock speed multiplied by the clock modifier.
This script uses the same analog-to-digital input wrapper introduced in #311 to allow
AIN
to be used in a fashion similar toDIN
with a callback on the rising and falling edges.