Complete rewrite of anycubic tft code structure + cleanup for upcoming Chiron BBL feature.

This commit is contained in:
Knutwurst
2021-02-18 18:18:38 +01:00
parent 72d48a5ef8
commit 7f56178d13
4 changed files with 1368 additions and 1327 deletions

View File

@@ -161,9 +161,9 @@
* PLEASE READ THE WARNING ABOVE! * PLEASE READ THE WARNING ABOVE!
* *
*/ */
#if ENABLED(KNUTWURST_CHIRON) //#if ENABLED(KNUTWURST_CHIRON)
//#define KNUTWURST_TFT_LEVELING //#define KNUTWURST_TFT_LEVELING
#endif //#endif
/******************************************************************************************* /*******************************************************************************************
** ** ** **

File diff suppressed because it is too large Load Diff

View File

@@ -287,6 +287,12 @@ private:
int FilamentRunoutCounter = 0; int FilamentRunoutCounter = 0;
#endif #endif
#if ENABLED(KNUTWURST_TFT_LEVELING)
extern int z_values_index;
extern int z_values_size;
extern float SAVE_zprobe_zoffset;
#endif
#if ENABLED(KNUTWURST_MEGA_P_LASER) #if ENABLED(KNUTWURST_MEGA_P_LASER)

View File

@@ -51,6 +51,7 @@
#include "stepper.h" #include "stepper.h"
#include "temperature.h" #include "temperature.h"
#include "../lcd/ultralcd.h" #include "../lcd/ultralcd.h"
#include "../lcd/anycubic_touchscreen.h"
#include "../core/language.h" #include "../core/language.h"
#include "../libs/vector_3.h" // for matrix_3x3 #include "../libs/vector_3.h" // for matrix_3x3
#include "../gcode/gcode.h" #include "../gcode/gcode.h"
@@ -718,6 +719,11 @@ void MarlinSettings::postprocess() {
EEPROM_WRITE(bilinear_grid_spacing); EEPROM_WRITE(bilinear_grid_spacing);
EEPROM_WRITE(bilinear_start); EEPROM_WRITE(bilinear_start);
#if ENABLED(KNUTWURST_TFT_LEVELING)
z_values_index = eeprom_index;
z_values_size = sizeof(z_values);
#endif
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
EEPROM_WRITE(z_values); // 9-256 floats EEPROM_WRITE(z_values); // 9-256 floats
#else #else