Browse Source

Ender 3 V2 DWIN cleanup (#21061)

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
4d75c2e0f9
  1. 491
      Marlin/src/lcd/dwin/e3v2/dwin.cpp
  2. 7
      Marlin/src/lcd/dwin/e3v2/dwin.h
  3. 8
      Marlin/src/pins/stm32f1/pins_CREALITY_V4.h

491
Marlin/src/lcd/dwin/e3v2/dwin.cpp

File diff suppressed because it is too large

7
Marlin/src/lcd/dwin/e3v2/dwin.h

@ -236,7 +236,7 @@ extern millis_t dwin_heat_time;
typedef struct { typedef struct {
TERN_(HAS_HOTEND, int16_t E_Temp = 0); TERN_(HAS_HOTEND, int16_t E_Temp = 0);
TERN_(HAS_HEATED_BED, int16_t Bed_Temp = 0); TERN_(HAS_HEATED_BED, int16_t Bed_Temp = 0);
TERN_(HAS_PREHEAT, int16_t Fan_speed = 0); TERN_(HAS_FAN, int16_t Fan_speed = 0);
int16_t print_speed = 100; int16_t print_speed = 100;
float Max_Feedspeed = 0; float Max_Feedspeed = 0;
float Max_Acceleration = 0; float Max_Acceleration = 0;
@ -270,10 +270,7 @@ typedef struct {
#if HAS_LEVELING #if HAS_LEVELING
bool leveling_offset_flag:1; bool leveling_offset_flag:1;
#endif #endif
#if HAS_FAN AxisEnum feedspeed_axis, acc_axis, jerk_axis, step_axis;
AxisEnum feedspeed_axis;
#endif
AxisEnum acc_axis, jerk_axis, step_axis;
} HMI_Flag_t; } HMI_Flag_t;
extern HMI_value_t HMI_ValueStruct; extern HMI_value_t HMI_ValueStruct;

8
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h

@ -132,8 +132,12 @@
#define HEATER_0_PIN PA1 // HEATER1 #define HEATER_0_PIN PA1 // HEATER1
#define HEATER_BED_PIN PA2 // HOT BED #define HEATER_BED_PIN PA2 // HOT BED
#define FAN_PIN PA0 // FAN #ifndef FAN_PIN
#define FAN_SOFT_PWM #define FAN_PIN PA0 // FAN
#endif
#if PIN_EXISTS(FAN)
#define FAN_SOFT_PWM
#endif
// //
// SD Card // SD Card

Loading…
Cancel
Save