Browse Source

Merge pull request #8162 from jeffyl/fix_azsmz

[2.0.x] Fix AZSMZ Mini pins for new LPC1768 pinmapping
Scott Lahteine 7 years ago
parent
commit
f505a04043
No account linked to committer's email address
1 changed files with 44 additions and 45 deletions
  1. 44
    45
      Marlin/src/pins/pins_AZSMZ_MINI.h

+ 44
- 45
Marlin/src/pins/pins_AZSMZ_MINI.h View File

24
  * AZSMZ MINI pin assignments
24
  * AZSMZ MINI pin assignments
25
  */
25
  */
26
 
26
 
27
-//#if !defined(TARGET_LPC1768)
28
-#if DISABLED(IS_REARM)
29
-  #error "Oops!  Make sure you have Re-Arm selected."
27
+#ifndef TARGET_LPC1768
28
+  #error "Oops!  Make sure you have LPC1768 selected."
30
 #endif
29
 #endif
31
 
30
 
32
 #ifndef BOARD_NAME
31
 #ifndef BOARD_NAME
38
 //
37
 //
39
 // Servos
38
 // Servos
40
 //
39
 //
41
-#define SERVO0_PIN         53
40
+#define SERVO0_PIN         P1_23
42
 
41
 
43
 //
42
 //
44
 // Limit Switches
43
 // Limit Switches
45
 //
44
 //
46
-#define X_MIN_PIN           3
47
-#define Y_MIN_PIN          14
48
-#define Z_MIN_PIN          18
49
-#define Z_MAX_PIN          19
45
+#define X_MIN_PIN          P1_24
46
+#define Y_MIN_PIN          P1_26
47
+#define Z_MIN_PIN          P1_28
48
+#define Z_MAX_PIN          P1_29
50
 
49
 
51
 //
50
 //
52
 // Steppers
51
 // Steppers
53
 //
52
 //
54
-#define X_STEP_PIN         26
55
-#define X_DIR_PIN          28
56
-#define X_ENABLE_PIN       24
53
+#define X_STEP_PIN         P2_0
54
+#define X_DIR_PIN          P0_5
55
+#define X_ENABLE_PIN       P0_4
57
 
56
 
58
-#define Y_STEP_PIN         54
59
-#define Y_DIR_PIN          55
60
-#define Y_ENABLE_PIN       38
57
+#define Y_STEP_PIN         P2_1
58
+#define Y_DIR_PIN          P0_11
59
+#define Y_ENABLE_PIN       P0_10
61
 
60
 
62
-#define Z_STEP_PIN         60
63
-#define Z_DIR_PIN          61
64
-#define Z_ENABLE_PIN       56
61
+#define Z_STEP_PIN         P2_2
62
+#define Z_DIR_PIN          P0_20
63
+#define Z_ENABLE_PIN       P0_19
65
 
64
 
66
-#define E0_STEP_PIN        46
67
-#define E0_DIR_PIN         48
68
-#define E0_ENABLE_PIN      62
65
+#define E0_STEP_PIN        P2_3
66
+#define E0_DIR_PIN         P0_22
67
+#define E0_ENABLE_PIN      P0_21
69
 
68
 
70
-#define E1_STEP_PIN        36
71
-#define E1_DIR_PIN         34
72
-#define E1_ENABLE_PIN      30
69
+#define E1_STEP_PIN        P2_8
70
+#define E1_DIR_PIN         P2_13
71
+#define E1_ENABLE_PIN      P4_29
73
 
72
 
74
 //
73
 //
75
 // Temperature Sensors
74
 // Temperature Sensors
83
 // Heaters / Fans
82
 // Heaters / Fans
84
 //
83
 //
85
 // EFB
84
 // EFB
86
-#define HEATER_0_PIN        8
87
-#define HEATER_BED_PIN     10
88
-#define FAN_PIN             9
89
-#define FAN1_PIN           63
85
+#define HEATER_0_PIN       P2_4
86
+#define HEATER_BED_PIN     P2_5
87
+#define FAN_PIN            P2_7
88
+#define FAN1_PIN           P0_26
90
 
89
 
91
 #if ENABLED(AZSMZ_12864)
90
 #if ENABLED(AZSMZ_12864)
92
-  #define BEEPER_PIN       37
93
-  #define DOGLCD_A0        59
94
-  #define DOGLCD_CS        41
95
-  #define BTN_EN1          13
96
-  #define BTN_EN2          15
97
-  #define BTN_ENC          31
98
-  #define LCD_SDSS         16
99
-  #define SD_DETECT_PIN    33
91
+  #define BEEPER_PIN       P1_30
92
+  #define DOGLCD_A0        P2_6
93
+  #define DOGLCD_CS        P1_22
94
+  #define BTN_EN1          P4_28
95
+  #define BTN_EN2          P1_27
96
+  #define BTN_ENC          P3_26
97
+  #define LCD_SDSS         P0_16
98
+  #define SD_DETECT_PIN    P3_25
100
 #endif
99
 #endif
101
 
100
 
102
 //
101
 //
103
 // Ethernet pins
102
 // Ethernet pins
104
 //
103
 //
105
-#define ENET_MDIO          71
106
-#define ENET_RX_ER         73
107
-#define ENET_RXD1          75
108
-#define ENET_MOC           70
109
-#define REF_CLK            72
110
-#define ENET_RXD0          74
111
-#define ENET_CRS           76
112
-#define ENET_TX_EN         77
113
-#define ENET_TXD0          78
114
-#define ENET_TXD1          79
104
+#define ENET_MDIO          P1_17
105
+#define ENET_RX_ER         P1_14
106
+#define ENET_RXD1          P1_10
107
+#define ENET_MOC           P1_16
108
+#define REF_CLK            P1_15
109
+#define ENET_RXD0          P1_9
110
+#define ENET_CRS           P1_8
111
+#define ENET_TX_EN         P1_4
112
+#define ENET_TXD0          P1_0
113
+#define ENET_TXD1          P1_1
115
 
114
 
116
 /**
115
 /**
117
  *  PWMs
116
  *  PWMs

Loading…
Cancel
Save