Robin & Longer3D SPI TFT driver (#14595)

This commit is contained in:
Tanguy Pruvot
2019-07-15 01:16:26 +02:00
committed by Scott Lahteine
parent 45bde333d5
commit 81d629bc47
124 changed files with 1653 additions and 181 deletions

View File

@@ -53,6 +53,10 @@
#define Z_MIN_PIN PA11
#define Z_MAX_PIN PC4
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN PF11 // MT_DET
#endif
//
// Steppers
//
@@ -76,44 +80,54 @@
// Temperature Sensors
//
#define TEMP_0_PIN PC1 // TH1
//#define TEMP_1_PIN PC2 // TH2
#define TEMP_BED_PIN PC0 // TB1
//
// Heaters / Fans
//
#define HEATER_0_PIN PC3 // HEATER1
//#define HEATER_1_PIN PA6 // HEATER2
#define HEATER_BED_PIN PA0 // HOT BED
#define FAN_PIN PB1 // FAN
#define BTN_ENC PB3 // Pin is not connected. Real pin is needed to enable encoder's push button functionality used by touch screen
//
// Thermocouples
//
//#define MAX6675_SS_PIN PE5 // TC1 - CS1
//#define MAX6675_SS_PIN PE6 // TC2 - CS2
//
// Misc. Functions
//
#define POWER_LOSS_PIN PA2 // PW_DET
#define PS_ON_PIN PA3 // PW_OFF
#define FIL_RUNOUT_PIN PF11 // MT_DET
#define BEEPER_PIN PC5
//#define LED_PIN PB2
//
// LCD / Controller
//
#define BEEPER_PIN PC5
#define SD_DETECT_PIN PD12
/**
* Note: MKS Robin TFT screens use various TFT controllers.
* If the screen stays white, disable 'LCD_RESET_PIN'
* to let the bootloader init the screen.
*/
#define LCD_RESET_PIN PF6
#define NO_LCD_REINIT // Suppress LCD re-initialization
#if ENABLED(MKS_ROBIN_TFT)
#define LCD_RESET_PIN PF6
#define NO_LCD_REINIT // Suppress LCD re-initialization
#define LCD_BACKLIGHT_PIN PD13
#define FSMC_CS_PIN PD7 // NE4
#define FSMC_RS_PIN PD11 // A0
#define TOUCH_CS PC2
#define LCD_BACKLIGHT_PIN PD13
#define SD_DETECT_PIN PD12
#if ENABLED(TOUCH_BUTTONS)
#define BTN_ENC PB3 // Not connected. TODO: Replace this hack to enable button code
#define FSMC_CS_PIN PD7 // NE4
#define FSMC_RS_PIN PD11 // A0
#define TOUCH_CS_PIN PC2
#endif
#endif
// Motor current PWM pins
#define MOTOR_CURRENT_PWM_XY_PIN PA6