add encoder example for x035 - #937
Open
NyxCode wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
While toying with this, i noticed that some pins are not currently accessible on the X035, e.g. PB21, PB16, PB17, and PC19. |
Owner
|
@NyxCode this is shaped much more like the EVT code than I think I'm comfortable with. The examples should be a plain direction of how to use the peripheral, not have configuration structures. |
Owner
|
(This isn't a NO, but, it is not particularly the direction we want to take things with ch32fun) |
This file contains hidden or 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
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.
This PR adds an example for using a rotary encoder read by TIM1 or TIM2 on the x035. Like with the PD example, the functionality is in a generic
rotary_encoder.hthat can be copied into other projects.This has not been fully tested yet, since i'm not working with an eval board with those pins exposed. If that's a problem, we can wait until I get one or someone else tests this.