update code base to Marlin 2.0.9.2
This commit is contained in:
157
Marlin/src/pins/ramps/pins_3DRAG.h
Executable file → Normal file
157
Marlin/src/pins/ramps/pins_3DRAG.h
Executable file → Normal file
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
@@ -34,7 +34,29 @@
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_SOURCE_CODE_URL
|
||||
#define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
|
||||
#define DEFAULT_SOURCE_CODE_URL "3dprint.elettronicain.it"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define Z_STOP_PIN 18
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
#define Z_DIR_PIN 28
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STEP_PIN 26
|
||||
#else
|
||||
#define Z_ENABLE_PIN 63
|
||||
#endif
|
||||
|
||||
#if HAS_CUTTER && !HAS_EXTRUDERS
|
||||
#define E0_DIR_PIN -1
|
||||
#define E0_ENABLE_PIN -1
|
||||
#define E0_STEP_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -44,67 +66,14 @@
|
||||
#define RAMPS_D9_PIN 8
|
||||
#define MOSFET_D_PIN 12
|
||||
|
||||
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#undef Z_MAX_PIN
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#undef Z_ENABLE_PIN
|
||||
#define Z_ENABLE_PIN 63
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#undef SDSS
|
||||
#define SDSS 25
|
||||
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if BOTH(ULTRA_LCD, NEWPANEL)
|
||||
#undef BEEPER_PIN
|
||||
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 23
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // HAS_SPI_LCD && NEWPANEL
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -137,26 +106,68 @@
|
||||
*
|
||||
* Note: Socket names vary from vendor to vendor
|
||||
*/
|
||||
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
|
||||
#undef SPINDLE_LASER_ENA_PIN
|
||||
#undef SPINDLE_DIR_PIN
|
||||
|
||||
#if HAS_CUTTER
|
||||
#if !EXTRUDERS
|
||||
#undef E0_DIR_PIN
|
||||
#undef E0_ENABLE_PIN
|
||||
#undef E0_STEP_PIN
|
||||
#undef Z_DIR_PIN
|
||||
#undef Z_ENABLE_PIN
|
||||
#undef Z_STEP_PIN
|
||||
#define Z_DIR_PIN 28
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STEP_PIN 26
|
||||
#if !HAS_EXTRUDERS
|
||||
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 62 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 48
|
||||
#elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
|
||||
#elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 17
|
||||
#if !NUM_SERVOS // Use servo connector if possible
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#elif HAS_FREE_AUX2_PINS
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
// TODO: Remap EXP1/2 based on adapter
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 23
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // IS_ULTRA_LCD && IS_NEWPANEL
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 188
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user