Skip to content

Commit

Permalink
🧑‍💻 Wrap MMU1 pins
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 10, 2022
1 parent 5520aa3 commit 267a44c
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 55 deletions.
18 changes: 10 additions & 8 deletions Marlin/src/pins/linux/pins_RAMPS_LINUX.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,16 @@
//
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#endif
#endif

/**
Expand Down
10 changes: 6 additions & 4 deletions Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,13 @@
//
// Průša i3 MK2 Multiplexer Support
//
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
#if HAS_PRUSA_MMU1
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
#endif
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
#endif
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN

/**
* LCD / Controller
Expand Down
8 changes: 5 additions & 3 deletions Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif

//
// LCD / Controller
Expand Down
8 changes: 5 additions & 3 deletions Marlin/src/pins/rambo/pins_EINSY_RETRO.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif

//
// LCD / Controller
Expand Down
10 changes: 6 additions & 4 deletions Marlin/src/pins/rambo/pins_MINIRAMBO.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#if !MB(MINIRAMBO_10A)
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#if !MB(MINIRAMBO_10A)
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif
#endif

//
Expand Down
8 changes: 5 additions & 3 deletions Marlin/src/pins/rambo/pins_RAMBO.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 84 // 84 in MK2 Firmware
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17
#define E_MUX1_PIN 16
#define E_MUX2_PIN 84 // 84 in MK2 Firmware
#endif

//
// LCD / Controller
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX2_PIN -1
#if HAS_PRUSA_MMU1
#define E_MUX2_PIN -1
#endif

//
// Misc. Functions
Expand Down
18 changes: 10 additions & 8 deletions Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,16 @@
//
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#endif
#endif

//
Expand Down
18 changes: 10 additions & 8 deletions Marlin/src/pins/ramps/pins_RAMPS_S_12.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,16 @@
//
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 29 // E2_STEP_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 28 // E2_DIR_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 29 // E2_STEP_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 28 // E2_DIR_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
#endif
#endif

//////////////////////////
Expand Down
20 changes: 11 additions & 9 deletions Marlin/src/pins/ramps/pins_TT_OSCAR.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,17 @@
//
// Průša i3 MK2 Multiplexer Support
//
//#ifndef E_MUX0_PIN
// #define E_MUX0_PIN 58 // Y_CS_PIN
//#endif
//#ifndef E_MUX1_PIN
// #define E_MUX1_PIN 53 // Z_CS_PIN
//#endif
//#ifndef E_MUX2_PIN
// #define E_MUX2_PIN 49 // En_CS_PIN
//#endif
#if 0 && HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 58 // Y_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 53 // Z_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 49 // En_CS_PIN
#endif
#endif

//////////////////////////
// LCDs and Controllers //
Expand Down
6 changes: 4 additions & 2 deletions Marlin/src/pins/stm32f4/pins_LERDGE_S.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@
//
// Průša i3 MK2 Multi Material Multiplexer Support
//
//#define E_MUX0_PIN -1
//#define E_MUX1_PIN -1
#if HAS_PRUSA_MMU1
//#define E_MUX0_PIN -1
//#define E_MUX1_PIN -1
#endif

//
// LED / Lighting
Expand Down
6 changes: 4 additions & 2 deletions Marlin/src/pins/stm32f4/pins_VAKE403D.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@
//
// Průša i3 MK2 Multi Material Multiplexer Support
//
//#define E_MUX0_PIN PG3
//#define E_MUX1_PIN PG4
#if HAS_PRUSA_MMU1
//#define E_MUX0_PIN PG3
//#define E_MUX1_PIN PG4
#endif

#define LED_PIN PB14 // Alive
#define PS_ON_PIN PE0
Expand Down

0 comments on commit 267a44c

Please sign in to comment.