Skip to content

Commit 63dd0f2

Browse files
authored
Fysetc S6 pins / LCD updates (MarlinFirmware#16830)
1 parent 0b98451 commit 63dd0f2

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

Marlin/Configuration_adv.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1333,9 +1333,11 @@
13331333
//#define AO_EXP1_PINMAP // AlephObjects CLCD UI EXP1 mapping
13341334
//#define AO_EXP2_PINMAP // AlephObjects CLCD UI EXP2 mapping
13351335
//#define CR10_TFT_PINMAP // Rudolph Riedel's CR10 pin mapping
1336+
//#define S6_TFT_PINMAP // FYSETC S6 pin mapping
1337+
13361338
//#define OTHER_PIN_LAYOUT // Define pins manually below
13371339
#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
13391341
#define CLCD_MOD_RESET 9
13401342
#define CLCD_SPI_CS 10
13411343

Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/compat.h

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#ifdef __MARLIN_FIRMWARE__
3838
// __MARLIN_FIRMWARE__ exists when compiled within Marlin.
3939
#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))
4044
#else
4145
namespace UI {
4246
static inline uint32_t safe_millis() {return millis();};

Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/pin_mappings.h

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
* without adding new pin definitions to the board.
2828
*/
2929

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+
3039
#ifdef CR10_TFT_PINMAP
3140
#ifndef __MARLIN_FIRMWARE__
3241
#error "This pin mapping requires Marlin."

Marlin/src/pins/stm32/pins_FYSETC_S6.h

+10-4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
#define E2END 0xFFF // 4KB
4949
#endif
5050

51+
//
52+
// Servos
53+
//
54+
#define SERVO0_PIN PA3
55+
5156
//
5257
// Limit Switches
5358
//
@@ -59,10 +64,11 @@
5964
#define Z_MAX_PIN PA3
6065

6166
//
62-
// Servos
63-
// share with Z_MAX_PIN
67+
// Filament Sensor
6468
//
65-
#define SERVO0_PIN PA3
69+
#ifndef FIL_RUNOUT_PIN
70+
#define FIL_RUNOUT_PIN PA1
71+
#endif
6672

6773
//
6874
// Steppers
@@ -160,6 +166,7 @@
160166
//#define KILL_PIN PC5
161167

162168
#define SDSS PA4
169+
#define SD_DETECT_PIN PB10
163170

164171
//
165172
// LCD / Controller
@@ -189,7 +196,6 @@
189196

190197
#define BTN_EN1 PC6
191198
#define BTN_EN2 PC7
192-
#define SD_DETECT_PIN PB10
193199

194200
#define LCD_SDSS PA4
195201

0 commit comments

Comments
 (0)