|
@@ -59,7 +59,9 @@
|
59
|
59
|
#define BOARD_NAME "Sanguinololu <1.2"
|
60
|
60
|
#endif
|
61
|
61
|
|
62
|
|
-#define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D) || MB(MELZI_CREALITY))
|
|
62
|
+#ifdef __AVR_ATmega1284P__
|
|
63
|
+ #define LARGE_FLASH true
|
|
64
|
+#endif
|
63
|
65
|
|
64
|
66
|
//
|
65
|
67
|
// Limit Switches
|
|
@@ -116,7 +118,7 @@
|
116
|
118
|
|
117
|
119
|
#endif
|
118
|
120
|
|
119
|
|
-#if MB(AZTEEG_X1) || MB(STB_11) || IS_MELZI
|
|
121
|
+#if MB(AZTEEG_X1) || MB(STB_11) || ENABLED(IS_MELZI)
|
120
|
122
|
#define FAN_PIN 4 // Works for Panelolu2 too
|
121
|
123
|
#endif
|
122
|
124
|
|
|
@@ -133,16 +135,25 @@
|
133
|
135
|
//#define SDSS 24
|
134
|
136
|
#define SDSS 31
|
135
|
137
|
|
136
|
|
-#if IS_MELZI
|
137
|
|
- #define LED_PIN 27
|
|
138
|
+#if ENABLED(IS_MELZI)
|
|
139
|
+ #define LED_PIN 27
|
138
|
140
|
#elif MB(STB_11)
|
139
|
141
|
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
|
140
|
142
|
#endif
|
141
|
143
|
|
142
|
144
|
#if DISABLED(SPINDLE_LASER_ENABLE) && ENABLED(SANGUINOLOLU_V_1_2) && !(ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)) // try to use IO Header
|
143
|
|
- #define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available
|
|
145
|
+ #define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available
|
144
|
146
|
#endif
|
145
|
147
|
|
|
148
|
+/**
|
|
149
|
+ * Sanguinololu 1.4 AUX pins:
|
|
150
|
+ *
|
|
151
|
+ * PWM TX1 RX1 SDA SCL
|
|
152
|
+ * 12V 5V D12 D11 D10 D17 D16
|
|
153
|
+ * GND GND D31 D30 D29 D28 D27
|
|
154
|
+ * A4 A3 A2 A1 A0
|
|
155
|
+ */
|
|
156
|
+
|
146
|
157
|
//
|
147
|
158
|
// LCD / Controller
|
148
|
159
|
//
|
|
@@ -152,7 +163,7 @@
|
152
|
163
|
|
153
|
164
|
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
|
154
|
165
|
|
155
|
|
- #if IS_MELZI // Melzi board
|
|
166
|
+ #if ENABLED(IS_MELZI)
|
156
|
167
|
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select
|
157
|
168
|
#define LCD_PINS_ENABLE 29 // SID (MOSI)
|
158
|
169
|
#define LCD_PINS_D4 17 // SCK (CLK) clock
|
|
@@ -160,7 +171,7 @@
|
160
|
171
|
// Marlin so this can be used for BEEPER_PIN. You can use this pin
|
161
|
172
|
// with M42 instead of BEEPER_PIN.
|
162
|
173
|
#define BEEPER_PIN 27
|
163
|
|
- #else // Sanguinololu 1.3
|
|
174
|
+ #else // Sanguinololu >=1.3
|
164
|
175
|
#define LCD_PINS_RS 4
|
165
|
176
|
#define LCD_PINS_ENABLE 17
|
166
|
177
|
#define LCD_PINS_D4 30
|
|
@@ -210,7 +221,7 @@
|
210
|
221
|
|
211
|
222
|
#if ENABLED(LCD_I2C_PANELOLU2)
|
212
|
223
|
|
213
|
|
- #if IS_MELZI
|
|
224
|
+ #if ENABLED(IS_MELZI)
|
214
|
225
|
#define BTN_ENC 29
|
215
|
226
|
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
|
216
|
227
|
#else
|
|
@@ -280,7 +291,7 @@
|
280
|
291
|
* MS3 O| |O 2A
|
281
|
292
|
* /RESET O| |O 1A
|
282
|
293
|
* /SLEEP O| |O 1B
|
283
|
|
- * SPINDLE_LASER_PWM_PIN STEP O| |O VDD
|
|
294
|
+ * SPINDLE_LASER_PWM_PIN STEP O| |O VDD
|
284
|
295
|
* SPINDLE_LASER_ENABLE_PIN DIR O| |O GND
|
285
|
296
|
* -------
|
286
|
297
|
*
|