Commit Graph

223 Commits

Author SHA1 Message Date
Knutwurst
75ffa32980 Use SENDLINE instead of SEND to create directory name on anycubic 1.0 display. 2023-05-30 16:07:26 +02:00
Knutwurst
e0d858d812 Fix misuse of const char pointer by creating a new string which represents the filename. 2023-05-30 15:09:46 +02:00
Knutwurst
ad86d96a31 Cleanup 2023-05-30 09:22:25 +02:00
Knutwurst
6c4a0a887a Remove old PrintList() implementation + some cleanup 2023-05-29 20:48:58 +02:00
Knutwurst
e940c218cd Do not remove current selection if Special Menu is enabled, so items can be tapped multiple times. 2023-05-29 20:40:27 +02:00
Knutwurst
1df0ee59d2 Set correct filament sensor pins for chiron in correspondig header and enable new file list implementation. 2023-05-29 20:34:08 +02:00
Knutwurst
9244ea5890 New file list render implementation - WIP! 2023-05-29 20:07:06 +02:00
Knutwurst
2b5816037a Add custom M600 configuration for DirectExtruder 4MAX Pro 2.0. 2023-05-29 12:35:07 +02:00
Knutwurst
e008a96269 Fix Chiron and 4MAX Pro 2.0 Filament rundout sensor. 2023-05-29 11:39:00 +02:00
Knutwurst
952e0db31e Fix that you could not get out of a selected directory. Refactor Touchscreen file handling. 2023-05-29 11:20:22 +02:00
Knutwurst
ae82913d1f Fix special menu not shown, when SD card is not inserted (Fix for #463) 2023-05-28 17:13:20 +02:00
Knutwurst
22dedaeb81 Use M600 for FilamentChange instead of regular pause() 2023-05-26 18:39:22 +02:00
Knutwurst
2b57ebccaa Add Heater Error Check. 2023-05-26 10:08:06 +02:00
Knutwurst
4a3071aa56 Some thermalManager substitutions. 2023-05-26 10:03:24 +02:00
Knutwurst
595bdd00cc Use ExtUI injectCommands() instead of queue.inject_P for PSTR. 2023-05-26 09:50:26 +02:00
Knutwurst
d5aa1e1823 Massive code cleanup by using internal ExtUI methods. 2023-05-25 21:06:45 +02:00
Knutwurst
05a706dfb6 Fix print time display. 2023-05-24 22:38:14 +02:00
Knutwurst
5fbd3337b6 Disable Touchscreen debugging messages 2023-05-24 19:27:45 +02:00
Knutwurst
62fcc2ff35 Fix filament sensor, but disable host action commands. 2023-05-24 19:22:58 +02:00
Knutwurst
c01193bf40 Finally fix print/pause/resume and M600 filament change. 2023-05-24 14:42:09 +02:00
Knutwurst
a019c471d1 Code cleanup. 2023-05-23 22:18:21 +02:00
Knutwurst
a2137565e5 Fix Chiron build errors. 2023-05-23 15:43:23 +02:00
Knutwurst
52dc811774 Lots of changes regadring the ExtUI implementation, Filament runout, Start, Stop, Pause and Resume. 2023-05-23 15:22:25 +02:00
Knutwurst
4d6715761d Revert c2c950b and 41c1600 and put changes into 36c8aee to recreate the 1.4.x filane behaviour. This should fix #453 and #455. It's untested atm and can include bugs. 2023-04-23 22:11:42 +02:00
Stefan Kalscheuer
b115276fee move display notification after leveling for Chiron into ExtUI hook 2022-12-23 17:51:20 +01:00
Stefan Kalscheuer
36c8aee75b make custom Anycubic touchscreen implementation an ExtUI module
Start migration to ExtUI module. We do not yet change much of the custom
logic, but this brings us closer to upstream and allows use of some
integration hooks with less patching required.
2022-12-23 17:29:38 +01:00
Stefan Kalscheuer
affad24f74 fix regression from LCD_SERIAL migration for CHIRON targets
fixes fd58245bd2

There is an extension to the G29 implementation that sends a J25
notification to the external display. This must not use the
HardwareSerial implementation anymore.

there are also two leftover opening parenthesis in the command scaning
loop within the Chiron block that must be removed.
2022-12-22 09:20:12 +01:00
Oliver Köster
bd5eba2a0c Merge pull request #403 from stklcode/fix/filename-padding
fill the output buffer with blanks on DGUS2 clone displays
2022-12-21 21:42:04 +01:00
Stefan Kalscheuer
41c16006a1 fill the output buffer with blanks on DGUS2 clone displays
The intention behind the original logic was to fill the entire line with
blanks, so that the output buffer of the display gets "flushed". Restore
this behavior.
2022-12-21 20:15:37 +01:00
Stefan Kalscheuer
fd58245bd2 use LCD_SERIAL for Anycubic touchscreen communication
Replace our implementation of HardwareSerial with LCD_SERIAL from AVR
HAL and copy helper methods and macros from Anycubic i3 ExtUI.
2022-12-21 12:26:45 +01:00
Stefan Kalscheuer
c2c950bbca simplify file name sanitization
The routine copies "fileNameLen" characters from the original filename
plus one additional character or a trailing blank. This additional char
is overwritten by a terminating null-byte afterwards anyway.

Remove the redundant check and simplify the loop.
2022-12-21 09:07:05 +01:00
Stefan Kalscheuer
3a19d9ef69 use longest_filename() for SD card files instead of longFilename
The long filename is not always filled, so files like "test.gco" may not
be shown in the file list. Use the built-in fallback to the longest name
available to overcome that issue and print the 8.3 name if no other is
available.
2022-12-20 09:03:22 +01:00
Stefan Kalscheuer
67c7ce7b79 Merge upstream changes from Marlin 2.1.2 2022-12-19 15:31:22 +01:00
Stefan Kalscheuer
db27202614 update leveling implementation and pin config for Chiron 2022-09-12 16:18:03 +02:00
Stefan Kalscheuer
6368552ced clean up HardwareSerial code
Remove unused variables, sanitize declarations and apply uncrust.
2022-09-12 16:18:02 +02:00
Stefan Kalscheuer
afee7b10c2 apply uncrust to anycubic_touchscreen 2022-09-03 09:26:38 +02:00
Stefan Kalscheuer
031c095019 remove explicit ABL inclusion from Anycubit Touchscreen code 2022-09-03 09:26:05 +02:00
Stefan Kalscheuer
986e416c7f Merge upstream changes from Marlin 2.1.1 2022-09-03 09:23:32 +02:00
Knutwurst
7444f4bb45 Add reset to 4Max Pro routine 2022-02-21 13:06:24 +01:00
Knutwurst
c66f3559d7 Reenable Mesh after 4 point easy level. 2022-02-18 09:57:27 +01:00
Knutwurst
1183a5b51c Fix bug, where Mesh was always applied when using 4 point easy leveling. 2022-02-18 09:53:43 +01:00
Knutwurst
2bc946edab Fix StopPrint when used before the actual print starts. 2022-02-13 12:43:34 +01:00
Knutwurst
3afc5c0dc1 Automatically disable steppers after stopping the print. 2022-02-13 12:34:32 +01:00
Knutwurst
f03df0b280 Add MEGA_P feature toggle (just in case, the implementation is used by another printer) 2022-02-10 09:37:08 +01:00
Knutwurst
b035c464dd Implement MEGA PRO inbuilt 4 point leveling 2022-02-10 09:25:13 +01:00
Knutwurst
ff88387916 Remove 8+3 filename crap when usind longer files on Anycubic 0.0.2 Display. It's now cut off at 26 characters but still displayed. 2022-02-04 23:36:04 +01:00
Knutwurst
b217d9fe69 Fix lockup and freeze for DGUS variants when pressing STOP while printing from SD card. 2022-02-04 19:44:38 +01:00
Knutwurst
d95fcd7673 Some minor fixes. 2022-02-03 12:14:56 +01:00
Knutwurst
e32e753ebf Some M600 and Filament Runout Fixes. 2022-02-01 12:29:25 +01:00
Knutwurst
66eeb0d7ec Fix Mesh Leveling not homing at start. 2022-01-23 14:45:47 +01:00