Open classicrocker883 opened 1 year ago
I wasn't sure having a normal int
or int32_t
made a difference, i dont notice much, so I guess it can be labeled just int
?
looking for some feedback, comments, suggestions.
looking for some feedback, comments, suggestions.
Please submit a PR for review.
just wanted the ability to change the encoder rate to adjust it on the fly.
Why does this need to be a runtime feature?
Also: Don’t forget to keep other UIs, particularly Marlin UI, in mind as the standard/base UI to implement these types of features.
a runtime feature
well not necessarily. I only wanted to be able to change the encoder rate without having to constantly recompiling and flashing firmware. I wasn't happy with the default, so I thought to go ahead and try to adjust it on the fly.
this technically doesn't need to be a runtime thing but more so for debug in that sense.
im also trying to figure out capabilities of the programming language with my skills. my unpolished low skills.
I saw the new update for Mriscoc's ProUI and it has a few new features, which gave me a couple of ideas. I'm just not so familiar with how to go about coding.
so basically I'm looking for feedback as well, if the code I wrote is actually correct, or what would be changed to make it better. it does work how I intended but I'm sure it can be optimized.
as for a pull request I'll try to consider the other UI's if I can merge the code over simply.
If your encoder is slow/you have a high-resolution encoder, you should enable ENCODER_PULSES_PER_STEP
and increase the default value.
Is your feature request related to a problem? Please describe.
just wanted the ability to change the encoder rate to adjust it on the fly.
Are you looking for hardware support?
No response
Describe the feature you want
So I got this working! I hope someone can review this code and give me some pointers (pun intended)
Now, the code may not be A+ 100% whatever typically should be, but it works!
File lcd/e3v2/common/encoder.cpp line ~130
File lcd/marlinui.cpp line ~70
File lcd/marlinui.cpp line ~200 after
class MarlinUI {
File src/module/settings.cpp in the
SettingsDataStruct {
File dwin.cpp
Additional context
No response