🧑‍💻 Wrap MMU1 pins

This commit is contained in:
Scott Lahteine 2022-02-10 13:58:50 -06:00
parent 65c4f14a9e
commit 59548410b8
12 changed files with 79 additions and 55 deletions

View File

@ -234,6 +234,7 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN #ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN #define E_MUX0_PIN 40 // Z_CS_PIN
#endif #endif
@ -243,6 +244,7 @@
#ifndef E_MUX2_PIN #ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN #define E_MUX2_PIN 44 // E1_CS_PIN
#endif #endif
#endif
/** /**
* Default pins for TMC software SPI * Default pins for TMC software SPI

View File

@ -258,11 +258,13 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0 #if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
#endif #endif
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN #define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
#endif
/** /**
* LCD / Controller * LCD / Controller

View File

@ -163,9 +163,11 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17 #define E_MUX0_PIN 17
#define E_MUX1_PIN 16 #define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78 #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif
// //
// LCD / Controller // LCD / Controller

View File

@ -157,9 +157,11 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17 #define E_MUX0_PIN 17
#define E_MUX1_PIN 16 #define E_MUX1_PIN 16
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78 #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif
// //
// LCD / Controller // LCD / Controller

View File

@ -130,11 +130,13 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17 #define E_MUX0_PIN 17
#define E_MUX1_PIN 16 #define E_MUX1_PIN 16
#if !MB(MINIRAMBO_10A) #if !MB(MINIRAMBO_10A)
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78 #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif #endif
#endif
// //
// LCD / Controller // LCD / Controller

View File

@ -186,9 +186,11 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#define E_MUX0_PIN 17 #define E_MUX0_PIN 17
#define E_MUX1_PIN 16 #define E_MUX1_PIN 16
#define E_MUX2_PIN 84 // 84 in MK2 Firmware #define E_MUX2_PIN 84 // 84 in MK2 Firmware
#endif
// //
// LCD / Controller // LCD / Controller

View File

@ -105,7 +105,9 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#define E_MUX2_PIN -1 #define E_MUX2_PIN -1
#endif
// //
// Misc. Functions // Misc. Functions

View File

@ -412,6 +412,7 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN #ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN #define E_MUX0_PIN 40 // Z_CS_PIN
#endif #endif
@ -421,6 +422,7 @@
#ifndef E_MUX2_PIN #ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN #define E_MUX2_PIN 44 // E1_CS_PIN
#endif #endif
#endif
// //
// AUX1 5V GND D2 D1 // AUX1 5V GND D2 D1

View File

@ -233,6 +233,7 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN #ifndef E_MUX0_PIN
#define E_MUX0_PIN 29 // E2_STEP_PIN #define E_MUX0_PIN 29 // E2_STEP_PIN
#endif #endif
@ -242,6 +243,7 @@
#ifndef E_MUX2_PIN #ifndef E_MUX2_PIN
#define E_MUX2_PIN 39 // E2_ENABLE_PIN #define E_MUX2_PIN 39 // E2_ENABLE_PIN
#endif #endif
#endif
////////////////////////// //////////////////////////
// LCDs and Controllers // // LCDs and Controllers //

View File

@ -252,15 +252,17 @@
// //
// Průša i3 MK2 Multiplexer Support // Průša i3 MK2 Multiplexer Support
// //
//#ifndef E_MUX0_PIN #if 0 && HAS_PRUSA_MMU1
// #define E_MUX0_PIN 58 // Y_CS_PIN #ifndef E_MUX0_PIN
//#endif #define E_MUX0_PIN 58 // Y_CS_PIN
//#ifndef E_MUX1_PIN #endif
// #define E_MUX1_PIN 53 // Z_CS_PIN #ifndef E_MUX1_PIN
//#endif #define E_MUX1_PIN 53 // Z_CS_PIN
//#ifndef E_MUX2_PIN #endif
// #define E_MUX2_PIN 49 // En_CS_PIN #ifndef E_MUX2_PIN
//#endif #define E_MUX2_PIN 49 // En_CS_PIN
#endif
#endif
////////////////////////// //////////////////////////
// LCDs and Controllers // // LCDs and Controllers //

View File

@ -133,8 +133,10 @@
// //
// Průša i3 MK2 Multi Material Multiplexer Support // Průša i3 MK2 Multi Material Multiplexer Support
// //
#if HAS_PRUSA_MMU1
//#define E_MUX0_PIN -1 //#define E_MUX0_PIN -1
//#define E_MUX1_PIN -1 //#define E_MUX1_PIN -1
#endif
// //
// LED / Lighting // LED / Lighting

View File

@ -150,8 +150,10 @@
// //
// Průša i3 MK2 Multi Material Multiplexer Support // Průša i3 MK2 Multi Material Multiplexer Support
// //
#if HAS_PRUSA_MMU1
//#define E_MUX0_PIN PG3 //#define E_MUX0_PIN PG3
//#define E_MUX1_PIN PG4 //#define E_MUX1_PIN PG4
#endif
#define LED_PIN PB14 // Alive #define LED_PIN PB14 // Alive
#define PS_ON_PIN PE0 #define PS_ON_PIN PE0