File tree 4 files changed +26
-5
lines changed
lcd/extensible_ui/lib/ftdi_eve_touch_ui
4 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 1333
1333
//#define AO_EXP1_PINMAP // AlephObjects CLCD UI EXP1 mapping
1334
1334
//#define AO_EXP2_PINMAP // AlephObjects CLCD UI EXP2 mapping
1335
1335
//#define CR10_TFT_PINMAP // Rudolph Riedel's CR10 pin mapping
1336
+ //#define S6_TFT_PINMAP // FYSETC S6 pin mapping
1337
+
1336
1338
//#define OTHER_PIN_LAYOUT // Define pins manually below
1337
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
1341
#define CLCD_MOD_RESET 9
1340
1342
#define CLCD_SPI_CS 10
1341
1343
Original file line number Diff line number Diff line change 37
37
#ifdef __MARLIN_FIRMWARE__
38
38
// __MARLIN_FIRMWARE__ exists when compiled within Marlin.
39
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
44
#else
41
45
namespace UI {
42
46
static inline uint32_t safe_millis () {return millis ();};
Original file line number Diff line number Diff line change 27
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
39
#ifdef CR10_TFT_PINMAP
31
40
#ifndef __MARLIN_FIRMWARE__
32
41
#error "This pin mapping requires Marlin."
Original file line number Diff line number Diff line change 48
48
#define E2END 0xFFF // 4KB
49
49
#endif
50
50
51
+ //
52
+ // Servos
53
+ //
54
+ #define SERVO0_PIN PA3
55
+
51
56
//
52
57
// Limit Switches
53
58
//
59
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
74
// Steppers
160
166
//#define KILL_PIN PC5
161
167
162
168
#define SDSS PA4
169
+ #define SD_DETECT_PIN PB10
163
170
164
171
//
165
172
// LCD / Controller
189
196
190
197
#define BTN_EN1 PC6
191
198
#define BTN_EN2 PC7
192
- #define SD_DETECT_PIN PB10
193
199
194
200
#define LCD_SDSS PA4
195
201
You can’t perform that action at this time.
0 commit comments