Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fysetc s6 board update #16830

Merged
merged 6 commits into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,7 @@
//#define AO_EXP2_PINMAP // AlephObjects CLCD UI EXP2 mapping
//#define CR10_TFT_PINMAP // Rudolph Riedel's CR10 pin mapping
//#define OTHER_PIN_LAYOUT // Define pins manually below
#define FYSETC_S6_TFT_PINMAP // FYSETC S6 pin mapping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this meant to be a new always-on default?

#if ENABLED(OTHER_PIN_LAYOUT)
// The pins for CS and MOD_RESET (PD) must be chosen.
#define CLCD_MOD_RESET 9
Expand Down
4 changes: 4 additions & 0 deletions Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#ifdef __MARLIN_FIRMWARE__
// __MARLIN_FIRMWARE__ exists when compiled within Marlin.
#include "pin_mappings.h"
#undef max
#define max(a,b) ((a)>(b)?(a):(b))
#undef min
#define min(a,b) ((a)<(b)?(a):(b))
#else
namespace UI {
static inline uint32_t safe_millis() {return millis();};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
* without adding new pin definitions to the board.
*/

#ifdef FYSETC_S6_TFT_PINMAP
#ifndef __MARLIN_FIRMWARE__
#error This pin mapping requires Marlin.
#endif

#define CLCD_SPI_CS PC7
#define CLCD_MOD_RESET PC6
#endif

#ifdef CR10_TFT_PINMAP
#ifndef __MARLIN_FIRMWARE__
#error "This pin mapping requires Marlin."
Expand Down
10 changes: 9 additions & 1 deletion Marlin/src/pins/stm32/pins_FYSETC_S6.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
#define Z_MIN_PIN PA0
#define Z_MAX_PIN PA3

//
// Filament Sensor
// share with X_MAX_PIN
//
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN PA1
#endif

//
// Servos
// share with Z_MAX_PIN
Expand Down Expand Up @@ -160,6 +168,7 @@
//#define KILL_PIN PC5

#define SDSS PA4
#define SD_DETECT_PIN PB10

//
// LCD / Controller
Expand Down Expand Up @@ -189,7 +198,6 @@

#define BTN_EN1 PC6
#define BTN_EN2 PC7
#define SD_DETECT_PIN PB10

#define LCD_SDSS PA4

Expand Down