Kaynağa Gözat

Fixes for FYSETC Cheetah (#17935)

RudolphRiedel 4 yıl önce
ebeveyn
işleme
98fdc67f1d
No account linked to committer's email address

+ 0
- 1
Marlin/Configuration_adv.h Dosyayı Görüntüle

@@ -1381,7 +1381,6 @@
1381 1381
   //#define AO_EXP2_PINMAP      // AlephObjects CLCD UI EXP2 mapping
1382 1382
   //#define CR10_TFT_PINMAP     // Rudolph Riedel's CR10 pin mapping
1383 1383
   //#define S6_TFT_PINMAP       // FYSETC S6 pin mapping
1384
-  //#define CHEETAH_TFT_PINMAP  // FYSETC Cheetah pin mapping
1385 1384
   //#define E3_EXP1_PINMAP      // E3 type boards (SKR E3/DIP, and Stock boards) EXP1 pin mapping
1386 1385
   //#define GENERIC_EXP2_PINMAP // GENERIC EXP2 pin mapping
1387 1386
 

+ 0
- 15
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/pin_mappings.h Dosyayı Görüntüle

@@ -163,18 +163,3 @@
163 163
   #define CLCD_MOD_RESET                 BTN_EN1
164 164
   #define CLCD_SPI_CS                    LCD_PINS_RS
165 165
 #endif
166
-
167
-#ifdef CHEETAH_TFT_PINMAP
168
-  #ifndef __MARLIN_FIRMWARE__
169
-    #error "This pin mapping requires Marlin."
170
-  #endif
171
-
172
-  #define CLCD_MOD_RESET                 BTN_EN1
173
-  #define CLCD_SPI_CS                    LCD_PINS_RS
174
-
175
-  #if ENABLED(CLCD_USE_SOFT_SPI)
176
-    #define CLCD_SOFT_SPI_MOSI           LCD_PINS_ENABLE
177
-    #define CLCD_SOFT_SPI_MISO           LCD_PINS_SCK
178
-    #define CLCD_SOFT_SPI_SCLK           LCD_PINS_D4
179
-  #endif
180
-#endif

+ 45
- 56
Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH.h Dosyayı Görüntüle

@@ -29,6 +29,7 @@
29 29
 
30 30
 #define BOARD_INFO_NAME   "FYSETC Cheetah"
31 31
 #define BOARD_WEBSITE_URL "fysetc.com"
32
+// https://github.com/FYSETC/Cheetah
32 33
 
33 34
 // Ignore temp readings during development.
34 35
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
@@ -103,39 +104,41 @@
103 104
 // Misc. Functions
104 105
 //
105 106
 #define SDSS                                PA4
107
+#define SD_DETECT_PIN                       PC3
106 108
 
107
-//
108
-// LCD Pins
109
-//
110
-/**
111
- *                 _____
112
- *             5V | 1 2 | GND
113
- *    (MOSI) PB15 | 3 4 | PB12 (LCD_EN)
114
- *     (SCK) PB13 | 5 6   PC11 (BTN_EN1)
115
- *  (LCD_RS) PB14 | 7 8 | PC10 (BTN_EN2)
116
- * (BTN_ENC) PC12 | 9 10| PC9  (BEEPER)
117
- *                 -----
118
- *                 EXP1
119
- */
109
+#ifndef RGB_LED_R_PIN
110
+  #define RGB_LED_R_PIN                     PB0
111
+#endif
112
+#ifndef RGB_LED_G_PIN
113
+  #define RGB_LED_G_PIN                     PB7
114
+#endif
115
+#ifndef RGB_LED_B_PIN
116
+  #define RGB_LED_B_PIN                     PB6
117
+#endif
120 118
 
121
-#define EXPA1_03_PIN                        PB15
122
-#define EXPA1_04_PIN                        PB12
123
-#define EXPA1_05_PIN                        PB13
124
-#define EXPA1_06_PIN                        PC11
125
-#define EXPA1_07_PIN                        PB14
126
-#define EXPA1_08_PIN                        PC10
127
-#define EXPA1_09_PIN                        PC12
128
-#define EXPA1_10_PIN                        PC9
119
+/*
120
+* EXP1 pinout for the LCD according to Fysetcs schematic for the Cheetah board
121
+*                 _____
122
+*  (Beeper) PC9  | 1 2 | PC12 (BTN_ENC)
123
+* (BTN_EN2) PC11 | 3 4 | PB14 (LCD_RS / MISO)
124
+* (BTN_EN1) PC10   5 6 | PB13 (SCK)
125
+*  (LCD_EN) PB12 | 7 8 | PB15 (MOSI)
126
+*            GND | 9 10| 5V
127
+*                 -----
128
+*                 EXP1
129
+* Note: The pin-numbers match the connector correctly and are not in reverse order like on the Ender-3 board.
130
+* Note: Functionally the pins are assigned in the same order as on the Ender-3 board.
131
+* Note: Pin 4 on the Cheetah board is assigned to an I/O, it is assigned to RESET on the Ender-3 board.
132
+*/
129 133
 
130 134
 #if HAS_SPI_LCD
131
-
132
-  #define BEEPER_PIN                EXPA1_10_PIN
135
+  #define BEEPER_PIN                        PC9
133 136
 
134 137
   #if HAS_GRAPHICAL_LCD
135
-    #define DOGLCD_A0               EXPA1_07_PIN
136
-    #define DOGLCD_CS               EXPA1_04_PIN
137
-    #define DOGLCD_SCK              EXPA1_05_PIN
138
-    #define DOGLCD_MOSI             EXPA1_03_PIN
138
+    #define DOGLCD_A0                       PB14
139
+    #define DOGLCD_CS                       PB12
140
+    #define DOGLCD_SCK                      PB13
141
+    #define DOGLCD_MOSI                     PB15
139 142
     //#define LCD_SCREEN_ROT_90
140 143
     //#define LCD_SCREEN_ROT_180
141 144
     //#define LCD_SCREEN_ROT_270
@@ -145,45 +148,31 @@
145 148
     #endif
146 149
   #endif
147 150
 
148
-  #define LCD_PINS_RS               EXPA1_04_PIN  // CS -- SOFT SPI for ENDER3 LCD
149
-  #define LCD_PINS_D4               EXPA1_05_PIN  // SCLK
150
-  #define LCD_PINS_ENABLE           EXPA1_03_PIN  // DATA MOSI
151
-
152
-  // not connected to a pin
153
-  #define SD_DETECT_PIN                     PC3
154
-
155
-  #ifndef RGB_LED_R_PIN
156
-    #define RGB_LED_R_PIN                   PB0
157
-  #endif
158
-  #ifndef RGB_LED_G_PIN
159
-    #define RGB_LED_G_PIN                   PB7
160
-  #endif
161
-  #ifndef RGB_LED_B_PIN
162
-    #define RGB_LED_B_PIN                   PB6
163
-  #endif
151
+  #define LCD_PINS_RS                       PB12  // CS -- SOFT SPI for ENDER3 LCD
152
+  #define LCD_PINS_D4                       PB13  // SCLK
153
+  #define LCD_PINS_ENABLE                   PB15  // DATA MOSI
164 154
 
165 155
   //#define LCD_CONTRAST_INIT 190
166 156
 
167 157
   #if ENABLED(NEWPANEL)
168
-    #define BTN_EN1                 EXPA1_06_PIN
169
-    #define BTN_EN2                 EXPA1_08_PIN
170
-    #define BTN_ENC                 EXPA1_09_PIN
158
+    #define BTN_EN1                         PC10
159
+    #define BTN_EN2                         PC11
160
+    #define BTN_ENC                         PC12
171 161
   #endif
172
-
173 162
 #endif
174 163
 
175 164
 #if ENABLED(TOUCH_UI_FTDI_EVE)
176
-  #define BEEPER_PIN                EXPA1_10_PIN
177
-
178
-  #define BTN_EN1                   EXPA1_06_PIN
165
+  #define BEEPER_PIN                        PC9
166
+  #define CLCD_MOD_RESET                    PC11
167
+  #define CLCD_SPI_CS                       PB12
179 168
 
180
-  #define LCD_PINS_RS               EXPA1_04_PIN
169
+  //#define CLCD_USE_SOFT_SPI                     // the Cheetah can use hardware-SPI so we do not really need this
181 170
 
182
-  #define CLCD_SPI_BUS 2
183
-  //#define CLCD_USE_SOFT_SPI
184 171
   #if ENABLED(CLCD_USE_SOFT_SPI)
185
-    #define LCD_PINS_ENABLE         EXPA1_03_PIN
186
-    #define LCD_PINS_SCK            EXPA1_07_PIN
187
-    #define LCD_PINS_D4             EXPA1_05_PIN
172
+    #define CLCD_SOFT_SPI_MOSI              PB15
173
+    #define CLCD_SOFT_SPI_MISO              PB14
174
+    #define CLCD_SOFT_SPI_SCLK              PB13
175
+  #else
176
+    #define CLCD_SPI_BUS 2
188 177
   #endif
189 178
 #endif

Loading…
İptal
Kaydet