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

Add Fysetc V2.1 / MKS V3 / BTT V1 Mini 12864 support for BTT SKR Mini E3 #23793

Merged
merged 4 commits into from
Feb 26, 2022
Merged
Changes from 1 commit
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
64 changes: 64 additions & 0 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,70 @@
#define TFTGLCD_CS PA9

#endif

#elif EITHER(FYSETC_MINI_12864_2_1, BTT_MINI_12864_V1)
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved

#error "CAUTION! FYSETC_MINI_12864_2_1 / BTT_MINI_12864_V1 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."

/**
* FYSETC_MINI_12864_2_1 / BTT_MINI_12864_V1 display pinout
*
* Board Display
* ------ ------
* PB5 |10 9 | PA15 (BEEP) |10 9 | BTN_ENC
* PA9 | 8 7 | RESET LCD_CS | 8 7 | LCD A0
* PA10 | 6 5 | PB9 LCD_RST | 6 5 | RED
* PB8 | 4 3 | PB15 (GREEN) | 4 3 | (BLUE)
* GND | 2 1 | 5V GND | 2 1 | 5V
* ------ ------
* EXP1 EXP1
*
* --- ------
* RST | 1 | (MISO) |10 9 | SCK
* (RX2) PA2 | 2 | BTN_EN1 | 8 7 | (SS)
* (TX2) PA3 | 3 | BTN_EN2 | 6 5 | MOSI
* GND | 4 | (CD) | 4 3 | (RST)
* 5V | 5 | (GND) | 2 1 | (KILL)
* --- ------
* TFT EXP2
*
* Needs custom cable:
*
* Board Display
*
* EXP1-1 ----------- EXP1-1
* EXP1-2 ----------- EXP1-2
* EXP1-3 ----------- EXP2-6
* EXP1-4 ----------- EXP1-5
* EXP1-5 ----------- EXP2-8
* EXP1-6 ----------- EXP1-6
* EXP1-8 ----------- EXP1-8
* EXP1-9 ----------- EXP1-9
* EXP1-10 ----------- EXP1-7
*
* TFT-2 ----------- EXP2-9
* TFT-3 ----------- EXP2-5
*
* for backlight configuration see steps 2 (V2.1) and 3 in https://wiki.fysetc.com/Mini12864_Panel/
*/

#define LCD_PINS_RS PA9 // CS
#define LCD_PINS_ENABLE PA3 // MOSI
#define LCD_BACKLIGHT_PIN -1
#define NEOPIXEL_PIN PB8
#define LCD_CONTRAST 255
#define LCD_RESET_PIN PA10

#define DOGLCD_CS PA9
#define DOGLCD_A0 PB5
#define DOGLCD_SCK PA2
#define DOGLCD_MOSI PA3

#define BTN_ENC PA15
#define BTN_EN1 PB9
#define BTN_EN2 PB15

#define FORCE_SOFT_SPI

#else
#error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, and TFTGLCD_PANEL_(SPI|I2C) are currently supported on the BIGTREE_SKR_MINI_E3."
Expand Down