mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Merge SD_DETECT_PIN (PR#2569)
This commit is contained in:
commit
eb65c57496
@ -321,7 +321,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL) && DISABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
#undef SDCARDDETECTINVERTED
|
||||
#undef SD_DETECT_INVERTED
|
||||
#endif
|
||||
|
||||
// Power Signal Control Definitions
|
||||
|
@ -674,7 +674,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -291,13 +291,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#ifndef ELB_FULL_GRAPHIC_CONTROLLER
|
||||
#define SDCARDDETECTINVERTED
|
||||
#endif
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -366,4 +366,12 @@
|
||||
#error BEEPER has been replaced with BEEPER_PIN. Please update your pins definitions.
|
||||
#endif
|
||||
|
||||
#ifdef SDCARDDETECT
|
||||
#error SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions.
|
||||
#endif
|
||||
|
||||
#ifdef SDCARDDETECTINVERTED
|
||||
#error SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration.
|
||||
#endif
|
||||
|
||||
#endif //SANITYCHECK_H
|
||||
|
@ -81,11 +81,11 @@ extern CardReader card;
|
||||
|
||||
#define IS_SD_PRINTING (card.sdprinting)
|
||||
|
||||
#if PIN_EXISTS(SDCARDDETECT)
|
||||
#if ENABLED(SDCARDDETECTINVERTED)
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT_PIN) != 0)
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
#if ENABLED(SD_DETECT_INVERTED)
|
||||
#define IS_SD_INSERTED (READ(SD_DETECT_PIN) != 0)
|
||||
#else
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT_PIN) == 0)
|
||||
#define IS_SD_INSERTED (READ(SD_DETECT_PIN) == 0)
|
||||
#endif
|
||||
#else
|
||||
//No card detect line? Assume the card is inserted.
|
||||
|
@ -674,7 +674,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -291,13 +291,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#ifndef ELB_FULL_GRAPHIC_CONTROLLER
|
||||
#define SDCARDDETECTINVERTED
|
||||
#endif
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -652,7 +652,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -610,7 +610,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -661,7 +661,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -657,7 +657,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -669,7 +669,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -649,7 +649,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -292,11 +292,11 @@
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SD_DETECT_PIN
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#ifndef ELB_FULL_GRAPHIC_CONTROLLER
|
||||
#define SDCARDDETECTINVERTED
|
||||
#define SD_DETECT_INVERTED
|
||||
#endif
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
|
@ -677,7 +677,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -661,7 +661,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -669,7 +669,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -789,7 +789,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -300,11 +300,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -789,7 +789,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -300,11 +300,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -793,7 +793,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -788,7 +788,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -340,11 +340,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
@ -452,7 +453,7 @@
|
||||
const unsigned int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#undef SDCARDDETECTINVERTED
|
||||
#undef SD_DETECT_INVERTED
|
||||
#endif
|
||||
|
||||
// Power Signal Control Definitions
|
||||
|
@ -672,7 +672,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -300,10 +300,10 @@
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SD_DETECT_PIN
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -663,7 +663,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
|
||||
//
|
||||
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
|
||||
//#define ELB_FULL_GRAPHIC_CONTROLLER
|
||||
//#define SDCARDDETECTINVERTED
|
||||
//#define SD_DETECT_INVERTED
|
||||
|
||||
// The RepRapDiscount Smart Controller (white PCB)
|
||||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
|
||||
|
@ -299,11 +299,12 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
||||
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
||||
// in the pins.h file. When using a push button pulling the pin to ground this will need inverted. This setting should
|
||||
// be commented out otherwise
|
||||
#define SDCARDDETECTINVERTED
|
||||
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
|
||||
// around this by connecting a push button or single throw switch to the pin defined
|
||||
// as SD_DETECT_PIN in your board's pins definitions.
|
||||
// This setting should be disabled unless you are using a push button, pulling the pin to ground.
|
||||
// Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
|
||||
#define SD_DETECT_INVERTED
|
||||
|
||||
#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
||||
#define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.
|
||||
|
@ -21,7 +21,7 @@
|
||||
#define BTN_ENC 12 //the click switch
|
||||
|
||||
#define SDSS 53
|
||||
#define SDCARDDETECT -1 // Pin 49 if using display sd interface
|
||||
#define SD_DETECT -1 // Pin 49 if using display sd interface
|
||||
|
||||
#if ENABLED(TEMP_STAT_LEDS)
|
||||
#define STAT_LED_RED 64
|
||||
|
@ -109,7 +109,7 @@
|
||||
#define BTN_ENC 39 //the click switch
|
||||
|
||||
#define SDSS 53
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#define KILL_PIN 31
|
||||
#endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#define ALARM_PIN -1
|
||||
#define SDCARDDETECT_PIN 12
|
||||
#define SD_DETECT_PIN 12
|
||||
|
||||
#if DISABLED(SDSUPPORT)
|
||||
// these pins are defined in the SD library if building with SD support
|
||||
|
@ -86,4 +86,4 @@
|
||||
#define BLEN_A 0
|
||||
|
||||
// Cheaptronic v1.0 doesn't use this
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
@ -64,7 +64,7 @@
|
||||
#if ENABLED(RA_CONTROL_PANEL)
|
||||
|
||||
#define SDSS 53
|
||||
#define SDCARDDETECT_PIN 28
|
||||
#define SD_DETECT_PIN 28
|
||||
|
||||
#define BTN_EN1 14
|
||||
#define BTN_EN2 39
|
||||
|
@ -19,6 +19,6 @@
|
||||
#define BLEN_C 2
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
#define SDCARDDETECT_PIN 6
|
||||
#define SD_DETECT_PIN 6
|
||||
|
||||
#endif // NEWPANEL && ULTRA_LCD
|
||||
|
@ -13,34 +13,34 @@
|
||||
#define X_STEP_PIN 21 // different from standard GEN7
|
||||
#define X_DIR_PIN 20 // different from standard GEN7
|
||||
#define X_ENABLE_PIN 24
|
||||
#define X_STOP_PIN 0
|
||||
#define X_STOP_PIN 0
|
||||
|
||||
//y axis pins
|
||||
#define Y_STEP_PIN 23
|
||||
#define Y_DIR_PIN 22
|
||||
#define Y_ENABLE_PIN 24
|
||||
#define Y_STOP_PIN 1
|
||||
#define Y_STOP_PIN 1
|
||||
|
||||
//z axis pins
|
||||
#define Z_STEP_PIN 26
|
||||
#define Z_DIR_PIN 25
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STOP_PIN 2
|
||||
#define Z_STOP_PIN 2
|
||||
|
||||
//extruder pins
|
||||
#define E0_STEP_PIN 28
|
||||
#define E0_DIR_PIN 27
|
||||
#define E0_ENABLE_PIN 24
|
||||
|
||||
#define TEMP_0_PIN 2
|
||||
#define TEMP_0_PIN 2
|
||||
#define TEMP_1_PIN -1
|
||||
#define TEMP_2_PIN -1
|
||||
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
|
||||
#define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
|
||||
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_1_PIN -1
|
||||
#define HEATER_2_PIN -1
|
||||
#define HEATER_BED_PIN 3 // (bed)
|
||||
#define HEATER_BED_PIN 3 // (bed)
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
|
||||
@ -56,9 +56,9 @@
|
||||
//#define TX_ENABLE_PIN 12
|
||||
//#define RX_ENABLE_PIN 13
|
||||
|
||||
#define BEEPER_PIN -1
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
|
||||
#define BEEPER_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
#define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
|
||||
|
||||
#define KILL_PIN -1
|
||||
//Pins for 4bit LCD Support
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDSS 11
|
||||
#define SDCARDDETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define SD_DETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define LED_PIN 13
|
||||
#define FAN_PIN 7
|
||||
#define PS_ON_PIN -1
|
||||
|
@ -107,6 +107,6 @@
|
||||
#define BTN_EN2 11
|
||||
#define BTN_ENC 10 //the click switch
|
||||
//not connected to a pin
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif //Minipanel
|
||||
|
||||
|
@ -78,6 +78,6 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN -1 // RAMPS doesn't use this
|
||||
#define SD_DETECT_PIN -1 // RAMPS doesn't use this
|
||||
|
||||
#endif // ULTRA_LCD && NEWPANEL
|
||||
|
@ -94,4 +94,4 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN -1 // Megatronics doesn't use this
|
||||
#define SD_DETECT_PIN -1 // Megatronics doesn't use this
|
||||
|
@ -99,4 +99,4 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN -1 // Megatronics doesn't use this
|
||||
#define SD_DETECT_PIN -1 // Megatronics doesn't use this
|
||||
|
@ -107,7 +107,7 @@
|
||||
#define BTN_EN2 72
|
||||
#define BTN_ENC 9 // the click
|
||||
|
||||
#define SDCARDDETECT_PIN 15
|
||||
#define SD_DETECT_PIN 15
|
||||
|
||||
#endif //NEWPANEL
|
||||
#endif //ULTRA_LCD
|
||||
|
@ -78,4 +78,4 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN -1 // Minitronics doesn't use this
|
||||
#define SD_DETECT_PIN -1 // Minitronics doesn't use this
|
||||
|
@ -70,7 +70,7 @@
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDSS 11
|
||||
#define SDCARDDETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define SD_DETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define LED_PIN -1
|
||||
#define FAN_PIN 14 // PWM on MIDDLE connector
|
||||
#define PS_ON_PIN -1
|
||||
|
@ -35,39 +35,39 @@
|
||||
#define X_STEP_PIN 21
|
||||
#define X_DIR_PIN 20
|
||||
#define X_ENABLE_PIN 24
|
||||
#define X_STOP_PIN 0
|
||||
#define X_STOP_PIN 0
|
||||
|
||||
#define Y_STEP_PIN 23
|
||||
#define Y_DIR_PIN 22
|
||||
#define Y_ENABLE_PIN 24
|
||||
#define Y_STOP_PIN 1
|
||||
#define Y_STOP_PIN 1
|
||||
|
||||
#define Z_STEP_PIN 26
|
||||
#define Z_DIR_PIN 25
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STOP_PIN 2
|
||||
#define Z_STOP_PIN 2
|
||||
|
||||
#define E0_STEP_PIN 28
|
||||
#define E0_DIR_PIN 27
|
||||
#define E0_ENABLE_PIN 24
|
||||
#define E0_STEP_PIN 28
|
||||
#define E0_DIR_PIN 27
|
||||
#define E0_ENABLE_PIN 24
|
||||
|
||||
#define E1_STEP_PIN -1 // 19
|
||||
#define E1_DIR_PIN -1 // 18
|
||||
#define E1_ENABLE_PIN 24
|
||||
#define E1_STEP_PIN -1 // 19
|
||||
#define E1_DIR_PIN -1 // 18
|
||||
#define E1_ENABLE_PIN 24
|
||||
|
||||
#define E2_STEP_PIN -1 // 17
|
||||
#define E2_DIR_PIN -1 // 16
|
||||
#define E2_ENABLE_PIN 24
|
||||
#define E2_STEP_PIN -1 // 17
|
||||
#define E2_DIR_PIN -1 // 16
|
||||
#define E2_ENABLE_PIN 24
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDSS 11
|
||||
#define SDCARDDETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define SD_DETECT_PIN -1 // 10 optional also used as mode pin
|
||||
#define LED_PIN -1
|
||||
#define FAN_PIN 3
|
||||
#define FAN_PIN 3
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_1_PIN -1 // 12
|
||||
#define HEATER_2_PIN -1 // 13
|
||||
#define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
||||
|
@ -88,7 +88,7 @@
|
||||
#define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping)
|
||||
#endif // LCD_I2C_PANELOLU2
|
||||
//not connected to a pin
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
#endif // ULTRA_LCD && NEWPANEL
|
||||
|
||||
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
||||
@ -104,7 +104,7 @@
|
||||
#define BTN_ENC 47 //the click switch
|
||||
|
||||
#define SDSS 45
|
||||
#define SDCARDDETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
|
||||
#define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
|
||||
|
||||
#if ENABLED(TEMP_STAT_LEDS)
|
||||
#define STAT_LED_RED 12 //Non-FastIO
|
||||
|
@ -133,7 +133,7 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN 81 // Ramps doesn't use this
|
||||
#define SD_DETECT_PIN 81 // Ramps doesn't use this
|
||||
|
||||
#else //!NEWPANEL - old style panel with shift register
|
||||
|
||||
@ -180,7 +180,7 @@
|
||||
#define BTN_EN2 84
|
||||
#define BTN_ENC 83 //the click switch
|
||||
|
||||
#define SDCARDDETECT_PIN -1 // Pin 72 if using easy adapter board
|
||||
#define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
|
||||
|
||||
#if ENABLED(TEMP_STAT_LEDS)
|
||||
#define STAT_LED_RED 22
|
||||
|
@ -117,10 +117,10 @@
|
||||
#if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
|
||||
#define HEATER_BED_PIN -1 // NO BED
|
||||
#else
|
||||
#define HEATER_BED_PIN 8 // BED
|
||||
#define HEATER_BED_PIN 8 // BED
|
||||
#endif
|
||||
|
||||
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
||||
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
||||
|
||||
#if HAS_SERVOS
|
||||
#define SERVO0_PIN 11
|
||||
@ -136,7 +136,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(Z_PROBE_SLED)
|
||||
#define SLED_PIN -1
|
||||
#define SLED_PIN -1
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
@ -165,25 +165,25 @@
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
#define BTN_EN1 47 // reverse if the encoder turns the wrong way.
|
||||
#define BTN_EN2 43
|
||||
#define BTN_ENC 32
|
||||
#define LCD_SDSS 53
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
#define KILL_PIN 41
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
#define BTN_EN1 22 // reverse if the encoder turns the wrong way.
|
||||
#define BTN_EN2 7
|
||||
#define BTN_ENC -1
|
||||
#define LCD_SDSS 53
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
#define BTN_EN1 35 // reverse if the encoder turns the wrong way.
|
||||
#define BTN_EN2 37
|
||||
#define BTN_ENC 31
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#define LCD_SDSS 53
|
||||
#define KILL_PIN 41
|
||||
#define BEEPER_PIN 23
|
||||
@ -210,7 +210,7 @@
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59 //the click switch
|
||||
//not connected to a pin
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#else
|
||||
|
||||
@ -235,9 +235,9 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#else
|
||||
#define SDCARDDETECT_PIN -1 // Ramps doesn't use this
|
||||
#define SD_DETECT_PIN -1 // Ramps doesn't use this
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -25,8 +25,8 @@
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN -1
|
||||
|
||||
#undef SDCARDDETECT_PIN
|
||||
#define SDCARDDETECT_PIN 22
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 22
|
||||
|
||||
// Extra button definitions, substitute for EN1 / EN2
|
||||
#define BTN_UP 37 // BTN_EN1
|
||||
@ -43,16 +43,16 @@
|
||||
#undef BTN_ENC
|
||||
#define BTN_ENC 31
|
||||
|
||||
#undef SDCARDDETECT_PIN
|
||||
#define SDCARDDETECT_PIN 22
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 22
|
||||
|
||||
#elif defined(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN -1
|
||||
|
||||
#undef SDCARDDETECT_PIN
|
||||
#define SDCARDDETECT_PIN 22
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 22
|
||||
|
||||
#undef KILL_PIN
|
||||
#define KILL_PIN 32
|
||||
|
@ -42,41 +42,41 @@
|
||||
|
||||
#define LED_PIN 13
|
||||
|
||||
#define FAN_PIN 7
|
||||
#define FAN1_PIN 8
|
||||
#define FAN_PIN 7
|
||||
#define FAN1_PIN 8
|
||||
|
||||
#define PS_ON_PIN 45
|
||||
#define KILL_PIN 46
|
||||
|
||||
#if (TEMP_SENSOR_0==0)
|
||||
#define TEMP_0_PIN -1
|
||||
#define HEATER_0_PIN -1
|
||||
#define TEMP_0_PIN -1
|
||||
#define HEATER_0_PIN -1
|
||||
#else
|
||||
#define HEATER_0_PIN 2 // EXTRUDER 1
|
||||
#define HEATER_0_PIN 2 // EXTRUDER 1
|
||||
#if (TEMP_SENSOR_0==-1)
|
||||
#define TEMP_0_PIN 6 // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
|
||||
#define TEMP_0_PIN 6 // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
|
||||
#else
|
||||
#define TEMP_0_PIN 15 // ANALOG NUMBERING - default connector for thermistor *T0* on rumba board is used
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (TEMP_SENSOR_1==0)
|
||||
#define TEMP_1_PIN -1
|
||||
#define HEATER_1_PIN -1
|
||||
#define TEMP_1_PIN -1
|
||||
#define HEATER_1_PIN -1
|
||||
#else
|
||||
#define HEATER_1_PIN 3 // EXTRUDER 2
|
||||
#define HEATER_1_PIN 3 // EXTRUDER 2
|
||||
#if (TEMP_SENSOR_1==-1)
|
||||
#define TEMP_1_PIN 5 // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
|
||||
#define TEMP_1_PIN 5 // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
|
||||
#else
|
||||
#define TEMP_1_PIN 14 // ANALOG NUMBERING - default connector for thermistor *T1* on rumba board is used
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (TEMP_SENSOR_2==0)
|
||||
#define TEMP_2_PIN -1
|
||||
#define HEATER_2_PIN -1
|
||||
#define TEMP_2_PIN -1
|
||||
#define HEATER_2_PIN -1
|
||||
#else
|
||||
#define HEATER_2_PIN 6 // EXTRUDER 3
|
||||
#define HEATER_2_PIN 6 // EXTRUDER 3
|
||||
#if (TEMP_SENSOR_2==-1)
|
||||
#define TEMP_2_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
|
||||
#else
|
||||
@ -88,20 +88,20 @@
|
||||
//optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN 8 // EXTRUDER 4
|
||||
|
||||
#if (TEMP_SENSOR_BED==0)
|
||||
#define TEMP_BED_PIN -1
|
||||
#define HEATER_BED_PIN -1
|
||||
#define TEMP_BED_PIN -1
|
||||
#define HEATER_BED_PIN -1
|
||||
#else
|
||||
#define HEATER_BED_PIN 9 // BED
|
||||
#define HEATER_BED_PIN 9 // BED
|
||||
#if (TEMP_SENSOR_BED==-1)
|
||||
#define TEMP_BED_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
|
||||
#else
|
||||
#define TEMP_BED_PIN 11 // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used
|
||||
#define TEMP_BED_PIN 11 // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDSS 53
|
||||
#define SDCARDDETECT_PIN 49
|
||||
#define SD_DETECT_PIN 49
|
||||
#define BEEPER_PIN 44
|
||||
#define LCD_PINS_RS 19
|
||||
#define LCD_PINS_ENABLE 42
|
||||
|
@ -156,7 +156,7 @@
|
||||
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
|
||||
#endif //Panelolu2
|
||||
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#elif ENABLED(MAKRPANEL)
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
#define BTN_EN2 10
|
||||
#define BTN_ENC 16
|
||||
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#endif // MAKRPANEL
|
||||
|
||||
|
@ -83,7 +83,7 @@
|
||||
#define LED_PIN -1
|
||||
#define PS_ON_PIN -1
|
||||
#define ALARM_PIN -1
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#define BEEPER_PIN -1
|
||||
#define LCD_PINS_RS -1
|
||||
|
@ -86,7 +86,7 @@
|
||||
#define TEMP_2_PIN -1
|
||||
|
||||
#define SDPOWER -1
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
#define SDSS 20 // 8
|
||||
#define LED_PIN 6
|
||||
#define PS_ON_PIN 27
|
||||
|
@ -78,7 +78,7 @@
|
||||
#define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping)
|
||||
#endif // LCD_I2C_PANELOLU2
|
||||
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#endif // ULTRA_LCD && NEWPANEL
|
||||
|
||||
|
@ -76,4 +76,4 @@
|
||||
#define BLEN_B 1
|
||||
#define BLEN_A 0
|
||||
|
||||
#define SDCARDDETECT_PIN 39
|
||||
#define SD_DETECT_PIN 39
|
||||
|
@ -73,7 +73,7 @@
|
||||
#define BTN_EN2 42
|
||||
#define BTN_ENC 19
|
||||
|
||||
#define SDCARDDETECT_PIN 38
|
||||
#define SD_DETECT_PIN 38
|
||||
|
||||
#else //!NEWPANEL - Old style panel with shift register
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
#define LCD_PINS_D6 20
|
||||
#define LCD_PINS_D7 19
|
||||
|
||||
#define SDCARDDETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#endif // !NEWPANEL
|
||||
|
||||
|
@ -221,7 +221,7 @@ static void lcd_status_screen();
|
||||
millis_t next_button_update_ms;
|
||||
uint8_t lastEncoderBits;
|
||||
uint32_t encoderPosition;
|
||||
#if PIN_EXISTS(SDCARDDETECT)
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
bool lcd_oldcardstatus;
|
||||
#endif
|
||||
|
||||
@ -411,14 +411,14 @@ static void lcd_main_menu() {
|
||||
}
|
||||
else {
|
||||
MENU_ITEM(submenu, MSG_CARD_MENU, lcd_sdcard_menu);
|
||||
#if !PIN_EXISTS(SDCARDDETECT)
|
||||
#if !PIN_EXISTS(SD_DETECT)
|
||||
MENU_ITEM(gcode, MSG_CNG_SDCARD, PSTR("M21")); // SD-card changed by user
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else {
|
||||
MENU_ITEM(submenu, MSG_NO_CARD, lcd_sdcard_menu);
|
||||
#if !PIN_EXISTS(SDCARDDETECT)
|
||||
#if !PIN_EXISTS(SD_DETECT)
|
||||
MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21")); // Manually initialize the SD-card via user interface
|
||||
#endif
|
||||
}
|
||||
@ -1156,7 +1156,7 @@ static void lcd_control_volumetric_menu() {
|
||||
}
|
||||
#endif // FWRETRACT
|
||||
|
||||
#if !PIN_EXISTS(SDCARDDETECT)
|
||||
#if !PIN_EXISTS(SD_DETECT)
|
||||
static void lcd_sd_refresh() {
|
||||
card.initsd();
|
||||
currentMenuViewOffset = 0;
|
||||
@ -1180,7 +1180,7 @@ void lcd_sdcard_menu() {
|
||||
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
||||
card.getWorkDirName();
|
||||
if (card.filename[0] == '/') {
|
||||
#if !PIN_EXISTS(SDCARDDETECT)
|
||||
#if !PIN_EXISTS(SD_DETECT)
|
||||
MENU_ITEM(function, LCD_STR_REFRESH MSG_REFRESH, lcd_sd_refresh);
|
||||
#endif
|
||||
}
|
||||
@ -1407,9 +1407,9 @@ void lcd_init() {
|
||||
#endif // SR_LCD_2W_NL
|
||||
#endif//!NEWPANEL
|
||||
|
||||
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SDCARDDETECT)
|
||||
pinMode(SDCARDDETECT_PIN, INPUT);
|
||||
WRITE(SDCARDDETECT_PIN, HIGH);
|
||||
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
|
||||
pinMode(SD_DETECT_PIN, INPUT);
|
||||
WRITE(SD_DETECT_PIN, HIGH);
|
||||
lcd_oldcardstatus = IS_SD_INSERTED;
|
||||
#endif
|
||||
|
||||
@ -1466,7 +1466,7 @@ void lcd_update() {
|
||||
|
||||
lcd_buttons_update();
|
||||
|
||||
#if PIN_EXISTS(SDCARDDETECT)
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
if (IS_SD_INSERTED != lcd_oldcardstatus && lcd_detected()) {
|
||||
lcdDrawUpdate = 2;
|
||||
lcd_oldcardstatus = IS_SD_INSERTED;
|
||||
|
Loading…
Reference in New Issue
Block a user