| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
| |
Signed-off-by: Thijs Triemstra <info@collab.nl>
|
|
|
| |
display: Add support for `AIP31068` based displays
|
|
|
|
|
|
| |
If a list is passed to getchoice(), seamlessly convert it to a dict.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
| |
This will hide features in the Klipper Display menu that isn't applicable
for the machine, therefore we can add extra alignment tools in the Control
menu as well.
Also conditionally displays Setup/Calibration options.
Signed-off-by: Nickolas Grigoriadis <nagrigoriadis@gmail.com>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds support for half-stepping encoders (encoders that only emit two
steps per detent, instead of four). Incorporates the feedback from
@susisstrolch's PR: https://github.com/KevinOConnor/klipper/pull/4202
, which was itself built upon a previous PR from @nickbrennan01:
https://github.com/KevinOConnor/klipper/pull/730
Uses the table from the Rotary Arduino library linked in buttons.py:
https://github.com/brianlow/Rotary/blob/6b784cca67c5f1ce5e11d757a540fc4c0311efca/Rotary.cpp#L21-L40
Signed-off-by: Rufo Sanchez <rufo@rufosanchez.com>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
| |
If the choice mapping uses integer keys then lookup the config option
using self.getint(). This simplifies the callers and improves the
encoding of the printer.configfile.settings export.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes the bug introduced by https://github.com/KevinOConnor/klipper/commit/f1091a484bfbf2cc5676e3a6fcd595172f123f67.
The problem is that condition was returning string which
could not be converted to boolean. We solve that by showing
`Start Printing` when `is_active`.
```
ERROR:root:Unhandled exception during run
Traceback (most recent call last):
...
File "/opt/klipper/klippy/extras/display/menu.py", line 117, in eval_enable
return bool(ast.literal_eval(self._enable_tpl.render(context)))
File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
/opt/octoprint/uploads/wait_print.gcode
```
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
|
|
|
|
|
|
|
| |
This provides a comprehensive information if currently
we have a file loaded.
Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
|
|
|
|
|
| |
Fixed typo when reading `print_stats.state` causing some of the menus to now show up.
Signed-off-by: Dany Yanev <yanev89@gmail.com>
|
|
|
| |
Signed-off-by: Marc-André Denis <marcadenis@msn.com>
|
|
|
|
|
|
| |
- set 1% as input minimum for speed and flow
- set speed maximum from 200% to 500%
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
| |
Added new ST7920E display driver which is better suited for displays with emulated ST7920
Signed-off-by: Christian Kehe <teeminus@posteo.net>
|
|
|
|
|
|
| |
For the hotend targets check also available heaters.
It'll solve crash when using shared heaters.
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
| |
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
|
| |
LDO OLED needs a different init string.
Fixes: #3722
Signed-off-by: Thomas Kroll <t.kroll@outlook.com>
|
|
|
|
|
| |
Change SD card enable condition and add Cancel printing option.
Signed-off-by: John Smith <login721@gmail.com>
|
|
|
|
|
| |
Update min/max in move menu to printer variables.
Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous init sequence relied on the display ignoring commands if
they are sent faster than 40us. Some displays may not have this
limit.
Rework the init to make it more robust to command transmission times.
The new init should still transition the display into 4-bit mode even
if the display processes commands faster than 40us.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
| |
- remove lot of helper methods
- differentiate class instantiate from config or directly
- don't use 'enable' template rendering when static value is used.
- new element 'disabled'
- other internal adjustments
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
| |
This allows to use 16x4 displays rather than only 20x4.
Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
|
|
|
|
|
|
|
| |
Explicilty clear the local context object so that it does not require
a gc sweep to free it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
| |
displays) (#3284)
Signed-off-by: RJ Patawaran <rjpatawaran@me.com>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
| |
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
|
|
| |
Increase the maximum redraw rate from 4 times per second to 10 times
per second. Some users have reported slower rendering times as a
result of 8fa1c977.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
| |
Split up the main GCodeParser class into GCodeDispatch and GCodeMove
classes. The GCodeMove class is now available using the "gcode_move"
printer object name. This split simplifies the gcode.py code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename printer.gcode.action_emergency_stop() to
action_emergency_stop(), printer.gcode.action_respond_info() to
action_respond_info(), and printer.gcode.action_respond_error() to
action_raise_error() in command templates.
This simplifies the get_status() interface, as returning callable
functions from that interface was confusing.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
|
|
| |
Add a request_redraw() method and call it when a key menu event
occurs. Limit these proactive screen redraws to no more than 4 per
second.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
|
|
|
| |
- don't populate all items at once
- populate items when container is pushed to stack
- precreate List back item, don't create it during populate.
- don't update items during populate
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
| |
The "busy" variable was removed and using it isn't necessary.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
In case of an overwriting existing menu item,
the new item was added additionally to the end of the items list.
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
menu.cfg:
- jinja2 template scripting
- new Setup menu
- new Calibration menu
menu:
- redesigned menu code
- jinja2 support
- option to reverse menu up and down directions
- functionality set to support menu injection from other modules
- a new way of defining menu hierarchy
- other adjustments
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Use a helper method to register each button handler.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
| |
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
|
|
|
|
|
| |
Use alternate import syntax to improve Python3 compatibility.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|