Skip to content

Commit

Permalink
📝 Consistent pin header orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 28, 2021
1 parent c5b7431 commit 761b1b9
Show file tree
Hide file tree
Showing 30 changed files with 329 additions and 327 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/pins/esp32/pins_MKS_TINYBEE.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
* ------ ------
* (BEEPER) 149 |10 9 | 13 (BTN_ENC) (SPI MISO) 19 |10 9 | 18 (SPI SCK)
* (LCD_EN) 21 | 8 7 | 4 (LCD_RS) (BTN_EN1) 14 | 8 7 | 5 (SPI CS)
* (LCD_D4) 0 | 6 5 16 (LCD_D5) (BTN_EN2) 12 | 6 5 23 (SPI MOSI)
* (LCD_D4) 0 6 5 | 16 (LCD_D5) (BTN_EN2) 12 6 5 | 23 (SPI MOSI)
* (LCD_D6) 15 | 4 3 | 17 (LCD_D7) (SPI_DET) 34 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | 3.3V
* ------ ------
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
/** ------ ------
* 1.30 |10 9 | 2.11 0.17 |10 9 | 0.15
* 0.18 | 8 7 | 0.16 3.26 | 8 7 | 1.23
* 0.15 6 5 | NC 3.25 6 5 | 0.18
* NC | 4 3 | NC 1.31 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | NC
* 0.15 6 5 | -- 3.25 6 5 | 0.18
* -- | 4 3 | -- 1.31 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down
36 changes: 18 additions & 18 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
* (LCD_EN) 1.18 | 8 7 | 1.19 (LCD_RS) (BTN_EN1) 3.26 | 8 7 | 0.16 (SD_SS)
* (LCD_D4) 1.20 6 5 | 1.21 (LCD_D5) (BTN_EN2) 3.25 6 5 | 0.18 (MOSI)
* (LCD_D6) 1.22 | 4 3 | 1.23 (LCD_D7) (SD_DETECT) 1.31 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down Expand Up @@ -237,11 +237,11 @@
*
* BEFORE AFTER
* ------ ------
* GND 1 | 1 2 | 2 5V 5V 1 | 1 2 | 2 GND
* CS 3 | 3 4 | 4 BTN_EN2 CS 3 | 3 4 | 4 BTN_EN2
* SID 5 | 5 6 6 BTN_EN1 SID 5 | 5 6 6 BTN_EN1
* open 7 | 7 8 | 8 BTN_ENC CLK 7 | 7 8 | 8 BTN_ENC
* CLK 9 | 9 10 | 10 Beeper open 9 | 9 10 | 10 Beeper
* (CLK) |10 9 | (BEEPER) (BEEPER) |10 9 | --
* -- | 8 7 | (BTN_ENC) (BTN_ENC) | 8 7 | (CLK)
* (SID) 6 5 | (BTN_EN1) (BTN_EN1) 6 5 | (SID)
* (CS) | 4 3 | (BTN_EN2) (BTN_EN2) | 4 3 | (CS)
* GND | 2 1 | 5V GND | 2 1 | 5V
* ------ ------
* LCD LCD
*/
Expand Down Expand Up @@ -270,11 +270,11 @@
*
* BEFORE AFTER
* ______ ______
* GND | 1 2 | 5V 5V | 1 2 | GND
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
* SCK | 7 8 | BTN_ENC SCK | 7 8 | BTN_ENC
* MOSI | 9 10 | open | 9 10 | MOSI
* |10 9 | (MOSI) (MOSI) |10 9 | --
* (BTN_ENC) | 8 7 | (SCK) (BTN_ENC) | 8 7 | (SCK)
* (BTN_EN1) 6 5 | (SID) (BTN_EN1) 6 5 | (SID)
* (BTN_EN2) | 4 3 | (CS) (BTN_EN2) | 4 3 | (CS)
* 5V | 2 1 | GND GND | 2 1 | 5V
* ------ ------
* LCD LCD
*/
Expand Down Expand Up @@ -424,13 +424,13 @@

/**
* Creality Ender-2 display pinout
* -----
* 5V | 1 2 | GND
* (MOSI) P1_23 | 3 4 | P1_22 (LCD_CS)
* (LCD_A0) P1_21 | 5 6 P1_20 (BTN_EN2)
* (RESET) P1_19 | 7 8 | P1_18 (BTN_EN1)
* (BTN_ENC) P0_28 | 9 10| P1_30 (SCK)
* -----
* ------
* (SCK) P1_30 |10 9 | P0_28 (BTN_ENC)
* (BTN_EN1) P1_18 | 8 7 | P1_19 (RESET)
* (BTN_EN2) P1_20 6 5 | P1_21 (LCD_A0)
* (LCD_CS) P1_22 | 4 3 | P1_23 (MOSI)
* GND | 2 1 | 5V
* ------
* EXP1
*/

Expand Down
40 changes: 20 additions & 20 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
* 1.18 | 8 7 | 1.19 3.26 | 8 7 | 0.16
* 1.20 6 5 | 1.21 3.25 6 5 | 0.18
* 1.22 | 4 3 | 1.23 1.31 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down Expand Up @@ -298,11 +298,11 @@
*
* BEFORE AFTER
* ------ ------
* GND | 1 2 | 5V 5V | 1 2 | GND
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
* open | 7 8 | BTN_ENC open | 7 8 | BTN_ENC
* CLK | 9 10| BEEPER CLK | 9 10| BEEPER
* (BEEPER) | 10 9 | (CLK) (BEEPER) | 10 9 | (CLK)
* (BTN_ENC) | 8 7 | -- (BTN_ENC) | 8 7 | --
* (BTN_EN1) 6 5 | (SID) (BTN_EN1) 6 5 | (SID)
* (BTN_EN2) | 4 3 | (CS) (BTN_EN2) | 4 3 | (CS)
* 5V | 2 1 | GND GND | 2 1 | 5V
* ------ ------
* LCD LCD
*/
Expand Down Expand Up @@ -330,15 +330,15 @@
*
* The ANET_FULL_GRAPHICS_LCD connector plug:
*
* BEFORE AFTER
* ------ ------
* GND | 1 2 | 5V 5V | 1 2 | GND
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
* open | 7 8 | BTN_ENC CLK | 7 8 | BTN_ENC
* CLK | 9 10 | BEEPER open | 9 10 | BEEPER
* ------ ------
* LCD LCD
* BEFORE AFTER
* ------ ------
* (BEEPER) |10 9 | (CLK) (BEEPER) |10 9 | --
* (BTN_ENC) | 8 7 | -- (BTN_ENC) | 8 7 | (CLK)
* (BTN_EN1) 6 5 | (SID) (BTN_EN1) 6 5 | (SID)
* (BTN_EN2) | 4 3 | (CS) (BTN_EN2) | 4 3 | (CS)
* 5V | 2 1 | GND GND | 2 1 | 5V
* ------ ------
* LCD LCD
*/

#define LCD_PINS_RS EXP1_03_PIN
Expand Down Expand Up @@ -366,11 +366,11 @@

/** Creality Ender-2 display pinout
* ------
* 5V | 1 2 | GND
* (MOSI) 1.23 | 3 4 | 1.22 (LCD_RS)
* (LCD_A0) 1.21 | 5 6 1.20 (BTN_EN2)
* RESET 1.19 | 7 8 | 1.18 (BTN_EN1)
* (BTN_ENC) 0.28 | 9 10 | 1.30 (SCK)
* (SCK) 1.30 |10 9 | 0.28 (BTN_ENC)
* (BTN_EN1) 1.18 | 8 7 | 1.19 (RESET)
* (BTN_EN2) 1.20 6 5 | 1.21 (LCD_A0)
* (LCD_RS) 1.22 | 4 3 | 1.23 (MOSI)
* GND | 2 1 | 5V
* ------
* EXP1
*/
Expand Down
17 changes: 9 additions & 8 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@
#endif

#if ENABLED(BTT_MOTOR_EXPANSION)
/** ------ ------
* NC | 1 2 | GND NC | 1 2 | GND
* NC | 3 4 | M1EN M2EN | 3 4 | M3EN
* M1STP | 5 6 M1DIR M1RX | 5 6 M1DIAG
* M2DIR | 7 8 | M2STP M2RX | 7 8 | M2DIAG
* M3DIR | 9 10 | M3STP M3RX | 9 10 | M3DIAG
* ------ ------
* EXP2 EXP1
/**
* ------ ------
* (M3STP) |10 9 | (M3DIR) (M3DIAG) |10 9 | (M3RX)
* (M2STP) | 8 7 | (M2DIR) (M2DIAG) | 8 7 | (M2RX)
* (M1DIR) 6 5 | (M1STP) (M1DIAG) 6 5 | (M1RX)
* (M1EN) | 4 3 | -- (M3EN) | 4 3 | (M2EN)
* GND | 2 1 | -- GND | 2 1 | --
* ------ ------
* EXP2 EXP1
*
* NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
*/
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@
/** ------ ------
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
* (LCD_D4) 0.15 | 6 5 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 0.9 (SD_MOSI)
* (LCD_D4) 0.15 6 5 | 0.17 (LCD_D5) (BTN_EN2) 3.26 6 5 | 0.9 (SD_MOSI)
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RESET
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down
20 changes: 10 additions & 10 deletions Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@

/**
* ------
* 5V | 1 2 | GND
* (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS)
* (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
* RESET | 7 8 | P0_19 (BTN_EN1)
* (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
* (BEEPER) P2_08 |10 9 | P0_16 (BTN_ENC)
* (BTN_EN1) P0_19 | 8 7 | RESET
* (BTN_EN2) P0_20 6 5 | P0_15 (LCD_D4)
* (LCD_RS) P0_17 | 4 3 | P0_18 (LCD_EN)
* GND | 2 1 | 5V
* ------
* EXP
*/
Expand All @@ -209,11 +209,11 @@
/**
* Ender 3 V2 display SKR E3 Turbo (EXP1) Ender 3 V2 display --> SKR E3 Turbo
* ------ ------ RX 8 --> 5 P0_15
* 5V | 1 2 | GND 5V | 1 2 | GND TX 7 --> 9 P0_16
* (BTN_E1) A | 3 4 | B (BTN_E2) (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS) BEEPER 5 --> 10 P2_08
* BEEPER | 5 6 ENT (BTN_ENC) (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
* (SKR_RX1) TX | 7 8 | RX (SKR_TX1) Reset | 7 8 | P0_19 (BTN_EN1)
* NC | 9 10 | NC (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
* -- |10 9 | -- (BEEPER) P2_08 |10 9 | P0_16 (BTN_ENC) TX 7 --> 9 P0_16
* (SKR_TX1) RX | 8 7 | TX (SKR_RX1) (BTN_EN1) P0_19 | 8 7 | RESET BEEPER 5 --> 10 P2_08
* (BTN_ENC) ENT 6 5 | BEEPER (BTN_EN2) P0_20 6 5 | P0_15 (LCD_D4)
* (BTN_E2) B | 4 3 | A (BTN_E1) (LCD_RS) P0_17 | 4 3 | P0_18 (LCD_EN)
* GND | 2 1 | 5V GND | 2 1 | 5V
* ------ ------
*/

Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@
/** ------ ------
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
* (LCD_D4) 0.15 | 6 5 | 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 | 0.9 (SD_MOSI)
* (LCD_D4) 0.15 6 5 | 0.17 (LCD_D5) (BTN_EN2) 3.26 6 5 | 0.9 (SD_MOSI)
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RST
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down
30 changes: 15 additions & 15 deletions Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@

/**
* ------
* 5V | 1 2 | GND
* P0_18 | 3 4 | P0_16
* P0_15 | 5 6 P3_25
* P2_11 | 7 8 | P3_26
* P1_30 | 9 10 | P1_31
* P1_31 |10 9 | P1_30
* P3_26 | 8 7 | P2_11
* P3_25 6 5 | P0_15
* P0_16 | 4 3 | P0_18
* GND | 2 1 | 5V
* ------
* EXP1
*
Expand All @@ -182,11 +182,11 @@

#if ENABLED(CR10_STOCKDISPLAY)
/** ------
* 5V | 1 2 | GND
* LCD_EN | 3 4 | LCD_RS
* LCD_D4 | 5 6 EN2
* KILL | 7 8 | EN1
* ENC | 9 10 | BEEPER
* BEEPER |10 9 | ENC
* EN1 | 8 7 | KILL
* EN2 6 5 | LCD_D4
* LCD_RS | 4 3 | LCD_EN
* GND | 2 1 | 5V
* ------
*/
#define BEEPER_PIN EXP1_10_PIN
Expand All @@ -197,11 +197,11 @@

#elif ENABLED(MKS_MINI_12864)
/** ------
* 5V | 1 2 | GND
* SPI-MOSI | 3 4 | SPI-CS
* A0 | 5 6 EN2
* -- | 7 8 | EN1
* ENC | 9 10 | SPI-SCK
* SCK |10 9 | ENC
* EN1 | 8 7 | --
* EN2 6 5 | A0
* CS | 4 3 | MOSI
* GND | 2 1 | 5V
* ------
*/
#define DOGLCD_CS EXP1_04_PIN
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/ramps/pins_MKS_GEN_13.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
* BLUE_LED | 8 7 | RED_LED ENCBTN | 8 7 | SDCS
* KILL 6 5 | BEEPER 6 5 | MOSI
* A0 | 4 3 | LCD_CS SDCD | 4 3 |
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down
16 changes: 8 additions & 8 deletions Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
* D17 | 8 7 | D16 D31 | 8 7 | D53
* D23 6 5 D25 D33 6 5 D51 (MOSI)
* D27 | 4 3 | D29 D49 | 4 3 | D41
* GND | 2 1 | 5V GND | 2 1 | NC
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
Expand Down Expand Up @@ -803,13 +803,13 @@
* FYSETC TFT-81050 display pinout
*
* Board Display
* ----- -----
* (SCK) D52 | 1 2 | D50 (MISO) MISO | 1 2 | SCK
* (SD_CS) D53 | 3 4 | D33 (BNT_EN2) (BNT_EN2) MOD_RESET | 3 4 | SD_CS
* (MOSI) D51 | 5 6 D31 (BNT_EN1) (BNT_EN1) LCD_CS | 5 6 MOSI
* RESET | 7 8 | D49 (SD_DET) SD_DET | 7 8 | RESET
* NC | 9 10| GND GND | 9 10| 5V
* ----- -----
* ------ ------
* GND |10 9 | -- 5V |10 9 | GND
* (SD_DET) 49 | 8 7 | RESET RESET | 8 7 | (SD_DET)
* (BTN_EN1) 31 6 5 | 51 (MOSI) (MOSI) 6 5 | (LCD_CS)
* (BTN_EN2) 33 | 4 3 | 53 (SD_CS) (SD_CS) | 4 3 | (MOD_RESET)
* (MISO) 50 | 2 1 | 52 (SCK) (SCK) | 2 1 | (MISO)
* ------ ------
* EXP2 EXP1
*
* Needs custom cable:
Expand Down
48 changes: 24 additions & 24 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@
#define USB_CONNECT_INVERTING false

/**
* -----
* 5V | 1 2 | GND
* (LCD_EN) PB7 | 3 4 | PB8 (LCD_RS)
* (LCD_D4) PB9 | 5 6 PA10 (BTN_EN2)
* RESET | 7 8 | PA9 (BTN_EN1)
* (BTN_ENC) PB6 | 9 10| PA15 (BEEPER)
* -----
* EXP1
* ------
* (BEEPER) PA15 |10 9 | PB6 (BTN_ENC)
* (BTN_EN1) PA9 | 8 7 | RESET
* (BTN_EN2) PA10 6 5 | PB9 (LCD_D4)
* (LCD_RS) PB8 | 4 3 | PB7 (LCD_EN)
* GND | 2 1 | 5V
* ------
* EXP1
*/

#if HAS_WIRED_LCD
Expand Down Expand Up @@ -195,13 +195,13 @@
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)

/** Creality Ender-2 display pinout
* -----
* 5V | 1 2 | GND
* (MOSI) PB7 | 3 4 | PB8 (LCD_RS)
* (LCD_A0) PB9 | 5 6 PA10 (BTN_EN2)
* RESET | 7 8 | PA9 (BTN_EN1)
* (BTN_ENC) PB6 | 9 10| PA15 (SCK)
* -----
* ------
* (SCK) PA15 |10 9 | PB6 (BTN_ENC)
* (BTN_EN1) PA9 | 8 7 | RESET
* (BTN_EN2) PA10 6 5 | PB9 (LCD_A0)
* (LCD_RS) PB8 | 4 3 | PB7 (MOSI)
* GND | 2 1 | 5V
* ------
* EXP1
*/

Expand All @@ -228,15 +228,15 @@

/** FYSETC TFT TFT81050 display pinout
*
* Board Display
* ----- -----
* 5V | 1 2 | GND (SPI1-MISO) MISO | 1 2 | SCK (SPI1-SCK)
* (FREE) PB7 | 3 4 | PB8 (LCD_CS) (PA9) MOD_RESET | 3 4 | SD_CS (PA10)
* (FREE) PB9 | 5 6 PA10 (SD_CS) (PB8) LCD_CS | 5 6 MOSI (SPI1-MOSI)
* RESET | 7 8 | PA9 (MOD_RESET) (PA15) SD_DET | 7 8 | RESET
* (BEEPER) PB6 | 9 10| PA15 (SD_DET) GND | 9 10| 5V
* ----- -----
* EXP1 EXP1
* Board Display
* ------ ------
* (SD_DET) PA15 |10 9 | PB6 (BEEPER) 5V |10 9 | GND
* (MOD_RESET) PA9 | 8 7 | RESET (RESET) | 8 7 | (SD_DET)
* (SD_CS) PA10 6 5 | PB9 (MOSI) 6 5 | (LCD_CS)
* (LCD_CS) PB8 | 4 3 | PB7 (SD_CS) | 4 3 | (MOD_RESET)
* GND | 2 1 | 5V (SCK) | 2 1 | (MISO)
* ------ ------
* EXP1 EXP1
*
* Needs custom cable:
*
Expand Down
Loading

0 comments on commit 761b1b9

Please sign in to comment.