Przeglądaj źródła

Robin Nano updates (#18347)

thisiskeithb 5 lat temu
rodzic
commit
ef2657d565
No account linked to committer's email address
1 zmienionych plików z 21 dodań i 6 usunięć
  1. 21
    6
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h

+ 21
- 6
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h Wyświetl plik

@@ -92,11 +92,24 @@
92 92
 //
93 93
 // Heaters / Fans
94 94
 //
95
-#define HEATER_0_PIN                        PC3   // HEATER1
96
-#define HEATER_1_PIN                        PB0   // HEATER2
97
-#define HEATER_BED_PIN                      PA0   // HOT BED
98
-
99
-#define FAN_PIN                             PB1   // FAN
95
+#ifndef HEATER_0_PIN
96
+  #define HEATER_0_PIN                      PC3
97
+#endif
98
+#if HOTENDS == 1
99
+  #ifndef FAN1_PIN
100
+    #define FAN1_PIN                        PB0
101
+  #endif
102
+#else
103
+  #ifndef HEATER_1_PIN
104
+    #define HEATER_1_PIN                    PB0
105
+  #endif
106
+#endif
107
+#ifndef FAN_PIN
108
+  #define FAN_PIN                           PB1   // FAN
109
+#endif
110
+#ifndef HEATER_BED_PIN
111
+  #define HEATER_BED_PIN                    PA0
112
+#endif
100 113
 
101 114
 //
102 115
 // Thermocouples
@@ -127,11 +140,13 @@
127 140
 // SD Card
128 141
 //
129 142
 #ifndef SDCARD_CONNECTION
130
-  //#define SDCARD_CONNECTION            ONBOARD
143
+  #define SDCARD_CONNECTION              ONBOARD
131 144
 #endif
132 145
 
133 146
 #define SDIO_SUPPORT
147
+#define SDIO_CLOCK                       4500000   // 4.5 MHz
134 148
 #define SD_DETECT_PIN                       PD12
149
+#define ONBOARD_SD_CS_PIN                   PC11
135 150
 
136 151
 //
137 152
 // LCD / Controller

Ładowanie…
Anuluj
Zapisz