Browse Source

Add HAS_PIN_27_BOARD for CREALITY_V4 (#20446)

Co-authored-by: ellensp <ellensp@hotmsil.com>
ellensp 4 years ago
parent
commit
2eab920935
No account linked to committer's email address
1 changed files with 12 additions and 6 deletions
  1. 12
    6
      Marlin/src/pins/stm32f1/pins_CREALITY_V4.h

+ 12
- 6
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h View File

@@ -48,17 +48,21 @@
48 48
 #endif
49 49
 
50 50
 #if ENABLED(IIC_BL24CXX_EEPROM)
51
-  #define IIC_EEPROM_SDA                  PA11
52
-  #define IIC_EEPROM_SCL                  PA12
53
-  #define MARLIN_EEPROM_SIZE             0x800  // 2Kb (24C16)
51
+  #define IIC_EEPROM_SDA                    PA11
52
+  #define IIC_EEPROM_SCL                    PA12
53
+  #define MARLIN_EEPROM_SIZE               0x800  // 2Kb (24C16)
54 54
 #elif ENABLED(SDCARD_EEPROM_EMULATION)
55
-  #define MARLIN_EEPROM_SIZE             0x800  // 2Kb
55
+  #define MARLIN_EEPROM_SIZE               0x800  // 2Kb
56 56
 #endif
57 57
 
58 58
 //
59 59
 // Servos
60 60
 //
61
-#define SERVO0_PIN                          PB0   // BLTouch OUT
61
+#ifndef HAS_PIN_27_BOARD
62
+  #define SERVO0_PIN                        PB0   // BLTouch OUT
63
+#else 
64
+  #define SERVO0_PIN                        PC6
65
+#endif
62 66
 
63 67
 //
64 68
 // Limit Switches
@@ -156,7 +160,9 @@
156 160
   #define BTN_EN1                           PB10
157 161
   #define BTN_EN2                           PB14
158 162
 
159
-  #define BEEPER_PIN                        PC6
163
+  #ifndef HAS_PIN_27_BOARD
164
+    #define BEEPER_PIN                      PC6
165
+  #endif
160 166
 
161 167
 #elif ENABLED(VET6_12864_LCD)
162 168
 

Loading…
Cancel
Save