Skip to content

Commit 980fba8

Browse files
GerogeFuthinkyhead
andcommittedMay 17, 2023
🐛 Fix FYSETC Cheetah v2.0 Servo/Probe pins (MarlinFirmware#24635)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent d0bdb9c commit 980fba8

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed
 

‎Marlin/src/pins/stm32f4/pins_FYSETC_CHEETAH_V20.h

+13-11
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,24 @@
4343
#define FLASH_ADDRESS_START 0x8004000
4444
#endif
4545

46+
#define SERVO0_PIN PB1 // BL-TOUCH/PWM
47+
4648
//
47-
// Z Probe
49+
// Limit Switches
4850
//
49-
#if ENABLED(BLTOUCH)
50-
#error "You need to set jumper to 5v for Bltouch, then comment out this line to proceed."
51-
#define SERVO0_PIN PA0
52-
#elif !defined(Z_MIN_PROBE_PIN)
53-
#define Z_MIN_PROBE_PIN PA0
54-
#endif
51+
#define X_STOP_PIN PB4 // X-MIN
52+
#define Y_STOP_PIN PC8 // Y-MIN
53+
#define Z_STOP_PIN PA0 // Z-MIN
5554

5655
//
57-
// Limit Switches
56+
// Z Probe
5857
//
59-
#define X_STOP_PIN PB4
60-
#define Y_STOP_PIN PC8
61-
#define Z_STOP_PIN PB1
58+
#if ENABLED(BLTOUCH)
59+
#error "You need to set jumper to 5V for BLTouch, then comment out this line to proceed."
60+
#endif
61+
#ifndef Z_MIN_PROBE_PIN
62+
#define Z_MIN_PROBE_PIN PB1 // BL-TOUCH/PWM repurposed
63+
#endif
6264

6365
//
6466
// Filament runout

‎buildroot/share/PlatformIO/variants/MARLIN_FYSETC_CHEETAH_V20/variant.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extern "C" {
9595

9696
// Timer Definitions
9797
#define TIMER_TONE TIM2 // TIMER_TONE must be defined in this file
98-
#define TIMER_SERVO TIM5 // TIMER_SERVO must be defined in this file
98+
#define TIMER_SERVO TIM3 // TIMER_SERVO must be defined in this file
9999
#define TIMER_SERIAL TIM11 // TIMER_SERIAL must be defined in this file
100100

101101
// UART Definitions

0 commit comments

Comments
 (0)