-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bar with customized width #2201
Conversation
Forgot to add a macro to keep compatibility |
the macro patch, as well as value with boundary in |
…m_mse_pf` function
So the "width" argument is the total width of the bar graph. |
One more doubt: You have disabled the wrap around to the min value. This would be fine for the "mud" edit mode, but would be an issue with the "mse" edit mode. Instead we should have an option here instead of hard coding this. I think your PR addresses multiple problems, which should be fixed independently. |
a rotary encoder was employed for user input, where
ye, "max" used as total width of bar graph, was replaced by "width" argument. The "scale" arg maybe useful for large display, due to "width" defined as "uint8_t". |
I have recreated a new field function instead: https://github.com/olikraus/u8g2/wiki/muiref#fixed-width-bar-graph-uint8 So closing this PR without merge. |
awesome! |
When using a bar graph as an indicator, such as for PWM's duty ratio, it can be challenging to draw the graph at a specific position and width. Modifications has been made in the source code to implement such a scenario.