Browse Source

Fysetc S6 pins / LCD updates (#16830)

George Fu 4 years ago
parent
commit
63dd0f249d
No account linked to committer's email address

+ 3
- 1
Marlin/Configuration_adv.h View File

1333
   //#define AO_EXP1_PINMAP    // AlephObjects CLCD UI EXP1 mapping
1333
   //#define AO_EXP1_PINMAP    // AlephObjects CLCD UI EXP1 mapping
1334
   //#define AO_EXP2_PINMAP    // AlephObjects CLCD UI EXP2 mapping
1334
   //#define AO_EXP2_PINMAP    // AlephObjects CLCD UI EXP2 mapping
1335
   //#define CR10_TFT_PINMAP   // Rudolph Riedel's CR10 pin mapping
1335
   //#define CR10_TFT_PINMAP   // Rudolph Riedel's CR10 pin mapping
1336
+  //#define S6_TFT_PINMAP     // FYSETC S6 pin mapping
1337
+
1336
   //#define OTHER_PIN_LAYOUT  // Define pins manually below
1338
   //#define OTHER_PIN_LAYOUT  // Define pins manually below
1337
   #if ENABLED(OTHER_PIN_LAYOUT)
1339
   #if ENABLED(OTHER_PIN_LAYOUT)
1338
-    // The pins for CS and MOD_RESET (PD) must be chosen.
1340
+    // Pins for CS and MOD_RESET (PD) must be chosen
1339
     #define CLCD_MOD_RESET  9
1341
     #define CLCD_MOD_RESET  9
1340
     #define CLCD_SPI_CS    10
1342
     #define CLCD_SPI_CS    10
1341
 
1343
 

+ 4
- 0
Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/compat.h View File

37
 #ifdef __MARLIN_FIRMWARE__
37
 #ifdef __MARLIN_FIRMWARE__
38
   // __MARLIN_FIRMWARE__ exists when compiled within Marlin.
38
   // __MARLIN_FIRMWARE__ exists when compiled within Marlin.
39
   #include "pin_mappings.h"
39
   #include "pin_mappings.h"
40
+  #undef max
41
+  #define max(a,b) ((a)>(b)?(a):(b))
42
+  #undef min
43
+  #define min(a,b) ((a)<(b)?(a):(b))
40
 #else
44
 #else
41
   namespace UI {
45
   namespace UI {
42
     static inline uint32_t safe_millis() {return millis();};
46
     static inline uint32_t safe_millis() {return millis();};

+ 9
- 0
Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/pin_mappings.h View File

27
  * without adding new pin definitions to the board.
27
  * without adding new pin definitions to the board.
28
  */
28
  */
29
 
29
 
30
+#ifdef S6_TFT_PINMAP
31
+  #ifndef __MARLIN_FIRMWARE__
32
+    #error "This pin mapping requires Marlin."
33
+  #endif
34
+
35
+  #define CLCD_SPI_CS         PC7
36
+  #define CLCD_MOD_RESET      PC6
37
+#endif
38
+
30
 #ifdef CR10_TFT_PINMAP
39
 #ifdef CR10_TFT_PINMAP
31
   #ifndef __MARLIN_FIRMWARE__
40
   #ifndef __MARLIN_FIRMWARE__
32
     #error "This pin mapping requires Marlin."
41
     #error "This pin mapping requires Marlin."

+ 10
- 4
Marlin/src/pins/stm32/pins_FYSETC_S6.h View File

49
 #endif
49
 #endif
50
 
50
 
51
 //
51
 //
52
+// Servos
53
+//
54
+#define SERVO0_PIN         PA3
55
+
56
+//
52
 // Limit Switches
57
 // Limit Switches
53
 //
58
 //
54
 #define X_MIN_PIN          PB14
59
 #define X_MIN_PIN          PB14
59
 #define Z_MAX_PIN          PA3
64
 #define Z_MAX_PIN          PA3
60
 
65
 
61
 //
66
 //
62
-// Servos
63
-// share with Z_MAX_PIN
67
+// Filament Sensor
64
 //
68
 //
65
-#define SERVO0_PIN         PA3
69
+#ifndef FIL_RUNOUT_PIN
70
+  #define FIL_RUNOUT_PIN   PA1
71
+#endif
66
 
72
 
67
 //
73
 //
68
 // Steppers
74
 // Steppers
160
 //#define KILL_PIN           PC5
166
 //#define KILL_PIN           PC5
161
 
167
 
162
 #define SDSS               PA4
168
 #define SDSS               PA4
169
+#define SD_DETECT_PIN  	   PB10
163
 
170
 
164
 //
171
 //
165
 // LCD / Controller
172
 // LCD / Controller
189
 
196
 
190
     #define BTN_EN1        PC6
197
     #define BTN_EN1        PC6
191
     #define BTN_EN2        PC7
198
     #define BTN_EN2        PC7
192
-    #define SD_DETECT_PIN  PB10
193
 
199
 
194
     #define LCD_SDSS       PA4
200
     #define LCD_SDSS       PA4
195
 
201
 

Loading…
Cancel
Save