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
hd44780: allow to configure line length #3543
hd44780: allow to configure line length #3543
Conversation
Thanks. In general it looks good to me. Some comments:
-Kevin |
My printer is a Renkforce RF1000 (cf #3496). There are more things to be added to Klipper to support it, and I intend to make more pull requests for it. This one is the simplest, just to get started (and understand the workflow) :-) The RF1000 has a 16x4 display.
There are different lengths possible. I have an 40x2 display lying around (unrelated to 3D printing), which of course would also require to modify the number of lines (doable but not required right now). I personally would not restrict things unnecessarily. If you think this is too permissive, I could also restrict the line_length to be either 16 or 20 - this would allow to quickly extend to different line lengths if needed. Wouldn't a new lcd_type require an extra module? I wouldn't like to copy the module code...
Not sure, what you mean by this. I am using this with the |
Makes sense. It's minor, but I think restricting to 16 or 20 would be worthwhile - just because I suspect other values would currently cause non-working results and may confuse users. FYI, one can use something like
FYI, it is possible to share the code - an example is in uc1701.py. That said, as above, I'm okay with keeping line_length.
Ah, okay. I just wasn't sure if there would be visual quirks using Separately, this will conflict with #3545 - I'll probably end up merging that one first. -Kevin UPDATE: Fix incorrect reference to #3545 . |
Ok thanks, it's done like this.
Just to verify, this is how the display looks like in idle position: The special glyphs look fine. The layout looks like I would expect it from the configuration file.
Sure, thanks for the heads up. |
This allows to use 16x4 displays rather than only 20x4. Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
These values are tested. Other values might not work and hence could confuse users. Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
76062ee
to
1060570
Compare
A simple rebase resolved the conflict. I noticed that the documentation was not yet reflecting the restriction to 16 or 20 characters, I fixed that, too. I think this is now good to go. |
Thanks. -Kevin |
This allows to use 16x4 displays rather than only 20x4. Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
This allows to use 16x4 displays rather than only 20x4.
Signed-off-by: Martin Hierholzer hier@beta-centauri.de