aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/uc1701.py
Commit message (Collapse)AuthorAgeFilesLines
* Run black on all first party python codeTomasz Kramkowski2025-08-061-73/+107
|
* display: Convert to Python3 string encodingKevin O'Connor2021-10-011-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add x_offset (Used to add horizontal offset on SSD1306/SH1106 ↵rjpatawaran2020-09-091-4/+9
| | | | | displays) (#3284) Signed-off-by: RJ Patawaran <rjpatawaran@me.com>
* uc1701: Improve Python3 compatibilityKevin O'Connor2020-09-041-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add configuration options for OLED displays (#3084)Iakabos2020-07-191-3/+6
| | | | | Add user-configurable contrast, vcomh (affects "smearing"), and invert options for SSD1306/SH1106 type OLED displays. Signed-off-by: James Esau <james_esau@hotmail.com>
* uc1701: Update bus import to "from .. import bus"Kevin O'Connor2020-06-151-9/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-1/+2
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Optimize swizzle_bits() codeKevin O'Connor2020-06-121-7/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Rework write_graphics() to take one character cell at a timeKevin O'Connor2020-06-111-17/+16
| | | | | | | 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>
* uc1701: Fix for glyph rendering on uc1701 display (#2966)Florian Heilmann2020-06-091-2/+2
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* display: Make hd44780 glyphs configurableKevin O'Connor2020-06-091-3/+5
| | | | | | | Allow the 20x4 hd44780 screen glyphs to be customizable from the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Move glyph definition to printer configFlorian Heilmann2020-06-081-5/+6
| | | | | | | | 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: Revert "display: Add ST7567 display support (#1540)"Kevin O'Connor2019-12-181-34/+0
| | | | | | | | | This reverts commit 1b92af60784ea811a7ca04dfbce75224874cf84a. The standard "uc1701" lcd_type can now be used in place of the custom "st7567" lcd_type. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add a delay after reset toggle (for displays using ResetHelper)Kevin O'Connor2019-12-031-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for rst_pinKevin O'Connor2019-12-021-15/+25
| | | | | | | Add support for an optional uc1701 rst_pin. Use the same reset pin code handling with the SSD1306 code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: add config option for sh1106 type with up to 132 columns.Matt Baker2019-11-261-6/+12
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* uc1701: Add support for a reset line on SSD1306 displaysKevin O'Connor2019-08-171-0/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bus: Add MCU_bus_digital_out helper classKevin O'Connor2019-08-171-24/+6
| | | | | | | Add a helper class for tracking gpio outputs that are synchronized to bus updates on a particular command queue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Add ST7567 display support (#1540)Dmitry2019-04-151-0/+34
| | | Signed-off-by: Dmitry Budaev <condemil@gmail.com>
* uc1701: make contrast configurableArksine2019-04-021-1/+2
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* font8x14: Store font as strings instead of as bytearrayKevin O'Connor2019-02-271-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* i2ccmds: Pass the i2c address as a 7-bit number (0-127)Kevin O'Connor2019-01-071-2/+2
| | | | | | | | | | | | | | | | The sam3 i2c code and the linux code use a 7-bit i2c address, while the avr, lpc176x, and samd21 i2c code uses an 8-bit address with the least significant bit always zero. A similar issue occurred in the host code (sx1509.py and replicape.py use 7-bit addresses while uc1701.py and mcp4451.py use 8-bit addresses). Consistently use 7-bit addresses in all the code. This breaks compatibility between host and mcu software, so make a change to the config_i2c command to force users to synchronize software updates. This also breaks common Smoothieboard configs, so update the mcp4451 code to validate the i2c_address. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for SSD1306 in i2c modeKevin O'Connor2018-11-231-55/+85
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Cache icons and fonts in byte display orderKevin O'Connor2018-11-211-43/+34
| | | | | | | This reduces the amount of bit manipulaton needed during screen updates. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Wrap code to 80 columnsKevin O'Connor2018-11-211-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add all_framebuffers to reduce vram indexing in the codeKevin O'Connor2018-11-211-17/+16
| | | | | | | | | | Add a self.all_framebuffers variable and change self.vram to only contain the new display data. This allows the main code to access the self.vram member variable without the need to index for current/old data. (It also updates the code to match the latest st7920 and hd44780 code.) Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Add support for SSD1306 displaysKevin O'Connor2018-11-211-1/+28
| | | | 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>
* uc1701: Use bus.py helper code for spiKevin O'Connor2018-11-211-29/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* uc1701: Support writing degrees symbolKevin O'Connor2018-09-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Use write_glyph() when writing special charactersKevin O'Connor2018-09-211-1/+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-0/+9
| | | | | | | | 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>
* display: Move icon drawing from display.py to lcd_chip codeKevin O'Connor2018-09-211-21/+8
| | | | | | | Move the st7920 icon rendering optimizations from display.py to st7920.py. This simplifies the code for other displays. 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>
* build: Cleanup whitespace errorsKevin O'Connor2018-06-281-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: uc1701 spi fixArksine2018-06-281-8/+2
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* display: add UC1701 graphics controller supportArksine2018-06-271-0/+180
Signed-off-by: Eric Callahan <arksine.code@gmail.com>