Browse Source

Fixes required for Creality CR-10

jneilliii 7 years ago
parent
commit
36771e9492
1 changed files with 20 additions and 5 deletions
  1. 20
    5
      Marlin/pins_MELZI_CREALITY.h

+ 20
- 5
Marlin/pins_MELZI_CREALITY.h View File

@@ -22,10 +22,17 @@
22 22
 
23 23
 /**
24 24
  * Melzi (Creality) pin assignments
25
+ *
26
+ * The Creality board needs a bootloader installed before Marlin can be uploaded.
27
+ * If you don't have a chip programmer you can use a spare Arduino plus a few
28
+ * electronic components to write the bootloader.
29
+ *
30
+ * See http://www.instructables.com/id/Burn-Arduino-Bootloader-with-Arduino-MEGA/
25 31
  */
26 32
 
27 33
 #define BOARD_NAME "Melzi (Creality)"
28 34
 #define IS_MELZI
35
+
29 36
 #include "pins_SANGUINOLOLU_12.h"
30 37
 
31 38
 // For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
@@ -33,19 +40,27 @@
33 40
 
34 41
 #undef LCD_SDSS
35 42
 #undef LED_PIN
36
-
37 43
 #undef LCD_PINS_RS
38 44
 #undef LCD_PINS_ENABLE
39
-
40
-#define LCD_PINS_RS     28 // st9720 CS
41
-#define LCD_PINS_ENABLE 17 // st9720 DAT
42
-
43 45
 #undef LCD_PINS_D4
44 46
 #undef LCD_PINS_D5
45 47
 #undef LCD_PINS_D6
46 48
 #undef LCD_PINS_D7
49
+#undef FIL_RUNOUT_PIN
47 50
 
51
+#define LCD_SDSS        31 // Smart Controller SD card reader (rather than the Melzi)
52
+#define LCD_PINS_RS     28 // st9720 CS
53
+#define LCD_PINS_ENABLE 17 // st9720 DAT
48 54
 #define LCD_PINS_D4     30 // st9720 CLK
55
+#define LCD_PINS_D5     -1
56
+#define LCD_PINS_D6     -1
57
+#define LCD_PINS_D7     -1
58
+#define FIL_RUNOUT_PIN  -1 // Uses Beeper/LED Pin Pulled to GND
59
+
60
+// Alter timing for graphical display
61
+#define ST7920_DELAY_1 DELAY_2_NOP
62
+#define ST7920_DELAY_2 DELAY_2_NOP
63
+#define ST7920_DELAY_3 DELAY_2_NOP
49 64
 
50 65
 /**
51 66
   PIN:   0   Port: B0        E0_DIR_PIN                  protected

Loading…
Cancel
Save