aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/hd44780.py
Commit message (Collapse)AuthorAgeFilesLines
* display: Rework write_graphics() to take one character cell at a timeKevin O'Connor2020-06-111-1/+1
| | | | | | | Change write_graphics() from taking one pixel row of n characters to taking all the rows and columns for one character cell. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Make hd44780 glyphs configurableKevin O'Connor2020-06-091-92/+13
| | | | | | | Allow the 20x4 hd44780 screen glyphs to be customizable from the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Note changes to glyph namesKevin O'Connor2020-06-081-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Move glyph definition to printer configFlorian Heilmann2020-06-081-0/+2
| | | | | | | | This commit allows to modify the icons (or glyphs) in the displays that support it. Existing icons can be modified and new icons can be added via a [display_glyph] section in the config. Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* display: Replace hard-coded display with new config based displayKevin O'Connor2020-03-081-2/+4
| | | | | | | | | | Introduce a new config based system for specifying the on-screen contents of an lcd screen. The default screen configuration (found in klippy/extras/display/display.cfg) is the same as the previous hard-coded display, so this should not change behavior for existing users. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Increase timeout to 40usKevin O'Connor2020-01-241-1/+1
| | | | | | | | | There have been several reports that increasing the delay from 37us to 40us eliminates screen corruption on some clone hd44780 displays. Increase the timeout value so that the standard code works on these displays. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Use two separate text framebuffersKevin O'Connor2019-12-011-9/+10
| | | | | | | | There is concern that some lcd boards that emulate the hd44780 don't support text updates that wrap the two text framebuffers. Update the code to treat the two text areas as two separate framebuffers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Wrap code to 80 columnsKevin O'Connor2019-02-271-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add a get_dimensions() method to lcd chip classesKevin O'Connor2018-11-211-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: new text glyph - fanJanar Sööt2018-10-021-0/+10
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* hd44780: Simplify framebuffer accessKevin O'Connor2018-09-211-9/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Use write_glyph() when writing special charactersKevin O'Connor2018-09-211-8/+0
| | | | | | | Always use the write_glyph() method when writing special characters during status screen updates. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Support writing single character glyphs using write_glyph()Kevin O'Connor2018-09-211-2/+20
| | | | | | | | Add write_glyph() support to hd44780.py. Update uc1701.py and st7920.py to support writing single character glyphs via write_glyph(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Rename add_config_object() to register_config_callback()Kevin O'Connor2018-09-031-1/+1
| | | | | | | | | Change the name of the config registration method and pass an explicit reference to the callback to the new method. This makes the relationship between mcu registration and build_config() more clear in the calling code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Explicitly pass can_invert and can_pullup to lookup_pin()Kevin O'Connor2018-07-261-3/+1
| | | | | | | | | | | | Don't pass pin_type to lookup_pin() - instead, if a pin can be inverted or can have a pullup, then the caller must explicitly specify that when calling lookup_pin(). This simplifies the code for the cases where it is not valid to invert or pullup. Explicitly pass the pin_type to setup_pin() and have ppins.setup_pin() apply default pullup and invert flags. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Move hd44780 code to its own moduleKevin O'Connor2018-06-271-0/+172
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>