Fix ANYCUBIC_LCD_CHIRON compilation (#20807)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
c0870d417a
commit
0a279cf666
|
@ -44,6 +44,8 @@ using namespace ExtUI;
|
||||||
|
|
||||||
namespace Anycubic {
|
namespace Anycubic {
|
||||||
|
|
||||||
|
FileNavigator filenavigator;
|
||||||
|
|
||||||
FileList FileNavigator::filelist; // Instance of the Marlin file API
|
FileList FileNavigator::filelist; // Instance of the Marlin file API
|
||||||
char FileNavigator::currentfoldername[MAX_PATH_LEN]; // Current folder path
|
char FileNavigator::currentfoldername[MAX_PATH_LEN]; // Current folder path
|
||||||
uint16_t FileNavigator::lastindex;
|
uint16_t FileNavigator::lastindex;
|
||||||
|
|
|
@ -54,6 +54,8 @@ namespace Anycubic {
|
||||||
float ChironTFT::live_Zoffset;
|
float ChironTFT::live_Zoffset;
|
||||||
file_menu_t ChironTFT::file_menu;
|
file_menu_t ChironTFT::file_menu;
|
||||||
|
|
||||||
|
ChironTFT Chiron;
|
||||||
|
|
||||||
ChironTFT::ChironTFT(){}
|
ChironTFT::ChironTFT(){}
|
||||||
|
|
||||||
void ChironTFT::Startup() {
|
void ChironTFT::Startup() {
|
||||||
|
@ -574,10 +576,11 @@ namespace Anycubic {
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case 15: // A15 Resuming from outage
|
case 15: // A15 Resuming from outage
|
||||||
if (printer_state == AC_printer_resuming_from_power_outage)
|
if (printer_state == AC_printer_resuming_from_power_outage) {
|
||||||
// Need to home here to restore the Z position
|
// Need to home here to restore the Z position
|
||||||
injectCommands_P(AC_cmnd_power_loss_recovery);
|
injectCommands(AC_cmnd_power_loss_recovery);
|
||||||
injectCommands_P(PSTR("M1000")); // home and start recovery
|
injectCommands("M1000"); // home and start recovery
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16: { // A16 Set HotEnd temp A17 S170
|
case 16: { // A16 Set HotEnd temp A17 S170
|
||||||
|
|
|
@ -60,6 +60,13 @@
|
||||||
#else
|
#else
|
||||||
#define X_MIN_PIN P1_26 // E0DET
|
#define X_MIN_PIN P1_26 // E0DET
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(X_DUAL_ENDSTOPS)
|
||||||
|
#ifndef X_MIN_PIN
|
||||||
|
#define X_MIN_PIN P1_29 // X-STOP
|
||||||
|
#endif
|
||||||
|
#ifndef X_MAX_PIN
|
||||||
|
#define X_MAX_PIN P1_26 // E0DET
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define X_STOP_PIN P1_29 // X-STOP
|
#define X_STOP_PIN P1_29 // X-STOP
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,6 +78,13 @@
|
||||||
#else
|
#else
|
||||||
#define Y_MIN_PIN P1_25 // E1DET
|
#define Y_MIN_PIN P1_25 // E1DET
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(Y_DUAL_ENDSTOPS)
|
||||||
|
#ifndef Y_MIN_PIN
|
||||||
|
#define Y_MIN_PIN P1_28 // Y-STOP
|
||||||
|
#endif
|
||||||
|
#ifndef Y_MAX_PIN
|
||||||
|
#define Y_MAX_PIN P1_25 // E1DET
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define Y_STOP_PIN P1_28 // Y-STOP
|
#define Y_STOP_PIN P1_28 // Y-STOP
|
||||||
#endif
|
#endif
|
||||||
|
@ -82,6 +96,13 @@
|
||||||
#else
|
#else
|
||||||
#define Z_MIN_PIN P1_00 // PWRDET
|
#define Z_MIN_PIN P1_00 // PWRDET
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(Z_MULTI_ENDSTOPS)
|
||||||
|
#ifndef Z_MIN_PIN
|
||||||
|
#define Z_MIN_PIN P1_27 // Z-STOP
|
||||||
|
#endif
|
||||||
|
#ifndef Z_MAX_PIN
|
||||||
|
#define Z_MAX_PIN P1_00 // PWRDET
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifndef Z_STOP_PIN
|
#ifndef Z_STOP_PIN
|
||||||
#define Z_STOP_PIN P1_27 // Z-STOP
|
#define Z_STOP_PIN P1_27 // Z-STOP
|
||||||
|
@ -337,6 +358,8 @@
|
||||||
#define LCD_PINS_ENABLE EXPA1_05_PIN
|
#define LCD_PINS_ENABLE EXPA1_05_PIN
|
||||||
#define LCD_PINS_D4 EXPA1_07_PIN
|
#define LCD_PINS_D4 EXPA1_07_PIN
|
||||||
|
|
||||||
|
#define BEEPER_PIN EXPA1_10_PIN
|
||||||
|
|
||||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||||
#define BTN_ENC EXPA1_09_PIN // (58) open-drain
|
#define BTN_ENC EXPA1_09_PIN // (58) open-drain
|
||||||
#define LCD_PINS_RS EXPA1_04_PIN
|
#define LCD_PINS_RS EXPA1_04_PIN
|
||||||
|
|
Loading…
Reference in a new issue