1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 05:48:43 +00:00

Pins spacing, 2.0.x parity

This commit is contained in:
Scott Lahteine 2018-02-17 21:43:47 -06:00
parent 80784c4d11
commit 50d38e7d03
11 changed files with 105 additions and 16 deletions

View File

@ -152,6 +152,18 @@
#if defined(DOGLCD_SCK) && DOGLCD_SCK >= 0 #if defined(DOGLCD_SCK) && DOGLCD_SCK >= 0
REPORT_NAME_DIGITAL(DOGLCD_SCK, __LINE__ ) REPORT_NAME_DIGITAL(DOGLCD_SCK, __LINE__ )
#endif #endif
#if PIN_EXISTS(E_MUX0)
REPORT_NAME_DIGITAL(E_MUX0_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E_MUX1)
REPORT_NAME_DIGITAL(E_MUX1_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E_MUX2)
REPORT_NAME_DIGITAL(E_MUX2_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E_STOP)
REPORT_NAME_DIGITAL(E_STOP_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E0_ATT) #if PIN_EXISTS(E0_ATT)
REPORT_NAME_DIGITAL(E0_ATT_PIN, __LINE__ ) REPORT_NAME_DIGITAL(E0_ATT_PIN, __LINE__ )
#endif #endif
@ -236,6 +248,9 @@
#if PIN_EXISTS(E3_MS2) #if PIN_EXISTS(E3_MS2)
REPORT_NAME_DIGITAL(E3_MS2_PIN, __LINE__ ) REPORT_NAME_DIGITAL(E3_MS2_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(E3_MS3)
REPORT_NAME_DIGITAL(E3_MS3_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E3_STEP) #if PIN_EXISTS(E3_STEP)
REPORT_NAME_DIGITAL(E3_STEP_PIN, __LINE__ ) REPORT_NAME_DIGITAL(E3_STEP_PIN, __LINE__ )
#endif #endif
@ -257,6 +272,9 @@
#if PIN_EXISTS(E4_MS2) #if PIN_EXISTS(E4_MS2)
REPORT_NAME_DIGITAL(E4_MS2_PIN, __LINE__ ) REPORT_NAME_DIGITAL(E4_MS2_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(E4_MS3)
REPORT_NAME_DIGITAL(E4_MS3_PIN, __LINE__ )
#endif
#if PIN_EXISTS(E4_STEP) #if PIN_EXISTS(E4_STEP)
REPORT_NAME_DIGITAL(E4_STEP_PIN, __LINE__ ) REPORT_NAME_DIGITAL(E4_STEP_PIN, __LINE__ )
#endif #endif
@ -335,6 +353,9 @@
#if PIN_EXISTS(FAN2) #if PIN_EXISTS(FAN2)
REPORT_NAME_DIGITAL(FAN2_PIN, __LINE__ ) REPORT_NAME_DIGITAL(FAN2_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(FAN3)
REPORT_NAME_DIGITAL(FAN3_PIN, __LINE__ )
#endif
#if PIN_EXISTS(FIL_RUNOUT) #if PIN_EXISTS(FIL_RUNOUT)
REPORT_NAME_DIGITAL(FIL_RUNOUT_PIN, __LINE__ ) REPORT_NAME_DIGITAL(FIL_RUNOUT_PIN, __LINE__ )
#endif #endif
@ -407,6 +428,9 @@
#if defined(LCD_SDSS) && LCD_SDSS >= 0 #if defined(LCD_SDSS) && LCD_SDSS >= 0
REPORT_NAME_DIGITAL(LCD_SDSS, __LINE__ ) REPORT_NAME_DIGITAL(LCD_SDSS, __LINE__ )
#endif #endif
#if PIN_EXISTS(LED_GREEN)
REPORT_NAME_DIGITAL(LED_GREEN_PIN, __LINE__ )
#endif
#if PIN_EXISTS(LED) #if PIN_EXISTS(LED)
REPORT_NAME_DIGITAL(LED_PIN, __LINE__ ) REPORT_NAME_DIGITAL(LED_PIN, __LINE__ )
#endif #endif
@ -416,6 +440,9 @@
#if defined(MAX6675_SS) && MAX6675_SS >= 0 #if defined(MAX6675_SS) && MAX6675_SS >= 0
REPORT_NAME_DIGITAL(MAX6675_SS, __LINE__ ) REPORT_NAME_DIGITAL(MAX6675_SS, __LINE__ )
#endif #endif
// #if defined(MISO) && MISO >= 0
// REPORT_NAME_DIGITAL(MISO, __LINE__ )
// #endif
#if PIN_EXISTS(MISO) #if PIN_EXISTS(MISO)
REPORT_NAME_DIGITAL(MISO_PIN, __LINE__ ) REPORT_NAME_DIGITAL(MISO_PIN, __LINE__ )
#endif #endif
@ -431,6 +458,9 @@
#if PIN_EXISTS(MOSFET_D) #if PIN_EXISTS(MOSFET_D)
REPORT_NAME_DIGITAL(MOSFET_D_PIN, __LINE__ ) REPORT_NAME_DIGITAL(MOSFET_D_PIN, __LINE__ )
#endif #endif
// #if defined(MOSI) && MOSI >= 0
// REPORT_NAME_DIGITAL(MOSI, __LINE__ )
// #endif
#if PIN_EXISTS(MOSI) #if PIN_EXISTS(MOSI)
REPORT_NAME_DIGITAL(MOSI_PIN, __LINE__ ) REPORT_NAME_DIGITAL(MOSI_PIN, __LINE__ )
#endif #endif
@ -497,6 +527,9 @@
#if PIN_EXISTS(SAFETY_TRIGGERED) #if PIN_EXISTS(SAFETY_TRIGGERED)
REPORT_NAME_DIGITAL(SAFETY_TRIGGERED_PIN, __LINE__ ) REPORT_NAME_DIGITAL(SAFETY_TRIGGERED_PIN, __LINE__ )
#endif #endif
// #if defined(SCK) && SCK >= 0
// REPORT_NAME_DIGITAL(SCK, __LINE__ )
// #endif
#if PIN_EXISTS(SCK) #if PIN_EXISTS(SCK)
REPORT_NAME_DIGITAL(SCK_PIN, __LINE__ ) REPORT_NAME_DIGITAL(SCK_PIN, __LINE__ )
#endif #endif
@ -566,6 +599,9 @@
#if PIN_EXISTS(SPINDLE_DIR) #if PIN_EXISTS(SPINDLE_DIR)
REPORT_NAME_DIGITAL(SPINDLE_DIR_PIN, __LINE__ ) REPORT_NAME_DIGITAL(SPINDLE_DIR_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(SPINDLE_ENABLE)
REPORT_NAME_DIGITAL(SPINDLE_ENABLE_PIN, __LINE__ )
#endif
#if PIN_EXISTS(SPINDLE_LASER_ENABLE) #if PIN_EXISTS(SPINDLE_LASER_ENABLE)
REPORT_NAME_DIGITAL(SPINDLE_LASER_ENABLE_PIN, __LINE__ ) REPORT_NAME_DIGITAL(SPINDLE_LASER_ENABLE_PIN, __LINE__ )
#endif #endif
@ -587,6 +623,9 @@
#if PIN_EXISTS(STAT_LED_BLUE) #if PIN_EXISTS(STAT_LED_BLUE)
REPORT_NAME_DIGITAL(STAT_LED_BLUE_PIN, __LINE__ ) REPORT_NAME_DIGITAL(STAT_LED_BLUE_PIN, __LINE__ )
#endif #endif
#if defined(STAT_LED_RED_LED) && STAT_LED_RED_LED >= 0
REPORT_NAME_DIGITAL(STAT_LED_RED_LED, __LINE__ )
#endif
#if PIN_EXISTS(STAT_LED_RED) #if PIN_EXISTS(STAT_LED_RED)
REPORT_NAME_DIGITAL(STAT_LED_RED_PIN, __LINE__ ) REPORT_NAME_DIGITAL(STAT_LED_RED_PIN, __LINE__ )
#endif #endif
@ -788,21 +827,42 @@
#if PIN_EXISTS(Z_MS2) #if PIN_EXISTS(Z_MS2)
REPORT_NAME_DIGITAL(Z_MS2_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z_MS2_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(Z_PROBE)
REPORT_NAME_DIGITAL(Z_PROBE_PIN, __LINE__ )
#endif
#if PIN_EXISTS(Z_STEP) #if PIN_EXISTS(Z_STEP)
REPORT_NAME_DIGITAL(Z_STEP_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z_STEP_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(Z_STOP) #if PIN_EXISTS(Z_STOP)
REPORT_NAME_DIGITAL(Z_STOP_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z_STOP_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(Z2_CS)
REPORT_NAME_DIGITAL(Z2_CS_PIN, __LINE__ )
#endif
#if PIN_EXISTS(Z2_DIR) #if PIN_EXISTS(Z2_DIR)
REPORT_NAME_DIGITAL(Z2_DIR_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z2_DIR_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(Z2_ENABLE) #if PIN_EXISTS(Z2_ENABLE)
REPORT_NAME_DIGITAL(Z2_ENABLE_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z2_ENABLE_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(Z2_MS1)
REPORT_NAME_DIGITAL(Z2_MS1_PIN, __LINE__ )
#endif
#if PIN_EXISTS(Z2_MS2)
REPORT_NAME_DIGITAL(Z2_MS2_PIN, __LINE__ )
#endif
#if PIN_EXISTS(Z2_MS3)
REPORT_NAME_DIGITAL(Z2_MS3_PIN, __LINE__ )
#endif
#if PIN_EXISTS(Z2_STEP) #if PIN_EXISTS(Z2_STEP)
REPORT_NAME_DIGITAL(Z2_STEP_PIN, __LINE__ ) REPORT_NAME_DIGITAL(Z2_STEP_PIN, __LINE__ )
#endif #endif
#if PIN_EXISTS(ZRIB_V20_D6)
REPORT_NAME_DIGITAL(ZRIB_V20_D6_PIN, __LINE__ )
#endif
#if PIN_EXISTS(ZRIB_V20_D9)
REPORT_NAME_DIGITAL(ZRIB_V20_D9_PIN, __LINE__ )
#endif
#if PIN_EXISTS(X_SERIAL_TX) #if PIN_EXISTS(X_SERIAL_TX)
REPORT_NAME_DIGITAL(X_SERIAL_TX_PIN, __LINE__ ) REPORT_NAME_DIGITAL(X_SERIAL_TX_PIN, __LINE__ )
#endif #endif

15
Marlin/pins_5DPRINT.h Normal file → Executable file
View File

@ -74,6 +74,14 @@
#define DEFAULT_MACHINE_NAME "Makibox" #define DEFAULT_MACHINE_NAME "Makibox"
#define BOARD_NAME "5DPrint D8" #define BOARD_NAME "5DPrint D8"
//
// Servos
//
#define SERVO0_PIN 41
#define SERVO1_PIN 42
#define SERVO2_PIN 43
#define SERVO3_PIN 44
// //
// Limit Switches // Limit Switches
// //
@ -100,7 +108,9 @@
#define E0_DIR_PIN 35 // A7 #define E0_DIR_PIN 35 // A7
#define E0_ENABLE_PIN 11 // C1 #define E0_ENABLE_PIN 11 // C1
//
// Digital Microstepping
//
#define X_MS1_PIN 25 // B5 #define X_MS1_PIN 25 // B5
#define X_MS2_PIN 26 // B6 #define X_MS2_PIN 26 // B6
#define Y_MS1_PIN 9 // E1 #define Y_MS1_PIN 9 // E1
@ -128,3 +138,6 @@
// Misc. Functions // Misc. Functions
// //
#define SDSS 20 // B0 #define SDSS 20 // B0
//DIGIPOTS slave addresses
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for DIGIPOT 0x2C (0x58 <- 0x2C << 1)

View File

@ -86,7 +86,7 @@
* Anet Users / Skynet SW on Facebook - https://www.facebook.com/skynet3ddevelopment/ * Anet Users / Skynet SW on Facebook - https://www.facebook.com/skynet3ddevelopment/
* *
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community. * Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
*/ */
#ifndef __AVR_ATmega1284P__ #ifndef __AVR_ATmega1284P__
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu." #error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."

View File

@ -41,6 +41,10 @@
#error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu." #error "Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
#endif #endif
// DIGIPOT slave addresses
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
// //
// Servos // Servos
// //
@ -138,7 +142,7 @@
#undef BEEPER_PIN #undef BEEPER_PIN
#define BEEPER_PIN 12 // 33 isn't physically available to the LCD display #define BEEPER_PIN 12 // 33 isn't physically available to the LCD display
#else #else
#define STAT_LED_RED_PIN 32 #define STAT_LED_RED_PIN 32
#define STAT_LED_BLUE_PIN 35 #define STAT_LED_BLUE_PIN 35
#endif #endif

View File

@ -133,6 +133,7 @@
// LCD / Controller // LCD / Controller
// //
#if ENABLED(MINIPANEL) #if ENABLED(MINIPANEL)
#define BEEPER_PIN 46 #define BEEPER_PIN 46
// Pins for DOGM SPI LCD Support // Pins for DOGM SPI LCD Support
#define DOGLCD_A0 47 #define DOGLCD_A0 47
@ -152,6 +153,7 @@
#define BTN_ENC 10 #define BTN_ENC 10
#define SD_DETECT_PIN 49 #define SD_DETECT_PIN 49
#endif // MINIPANEL #endif // MINIPANEL
// //

View File

@ -119,6 +119,7 @@
#define DIGIPOTS_I2C_SDA_Z 65 // K3 #define DIGIPOTS_I2C_SDA_Z 65 // K3
#define DIGIPOTS_I2C_SDA_E0 27 // A5 #define DIGIPOTS_I2C_SDA_E0 27 // A5
#define DIGIPOTS_I2C_SDA_E1 77 // J6 #define DIGIPOTS_I2C_SDA_E1 77 // J6
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
// //
// Temperature Sensors // Temperature Sensors

View File

@ -54,13 +54,6 @@
#define SERVO2_PIN 24 // Motor header MX3 #define SERVO2_PIN 24 // Motor header MX3
#define SERVO3_PIN 5 // PWM header pin 5 #define SERVO3_PIN 5 // PWM header pin 5
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 30
#endif
// //
// Limit Switches // Limit Switches
// //
@ -71,6 +64,13 @@
#define Z_MIN_PIN 10 #define Z_MIN_PIN 10
#define Z_MAX_PIN 30 #define Z_MAX_PIN 30
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 30
#endif
// //
// Steppers // Steppers
// //
@ -108,6 +108,9 @@
#define DIGIPOTSS_PIN 38 #define DIGIPOTSS_PIN 38
#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
#ifndef DIGIPOT_MOTOR_CURRENT
#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
#endif
// //
// Temperature Sensors // Temperature Sensors
@ -200,7 +203,7 @@
#define SD_DETECT_PIN 81 #define SD_DETECT_PIN 81
#endif // !VIKI2 && !miniVIKI #endif // !VIKI2 && !miniVIKI
#else // !NEWPANEL - old style panel with shift register #else // !NEWPANEL - old style panel with shift register

View File

@ -262,7 +262,7 @@
#endif #endif
#ifndef FAN_PIN #ifndef FAN_PIN
#define FAN_PIN 4 // IO pin. Buffer needed #define FAN_PIN 4 // IO pin. Buffer needed
#endif #endif
// //

View File

@ -153,6 +153,12 @@
// //
// M3/M4/M5 - Spindle/Laser Control // M3/M4/M5 - Spindle/Laser Control
// //
#define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM #ifndef SPINDLE_LASER_PWM_PIN
#define SPINDLE_LASER_ENABLE_PIN 14 // Pin should have a pullup! #define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM. Pin 4 interrupts OC0* and OC1* always in use?
#define SPINDLE_DIR_PIN 15 #endif
#ifndef SPINDLE_LASER_ENABLE_PIN
#define SPINDLE_LASER_ENABLE_PIN 14 // Pin should have a pullup!
#endif
#ifndef SPINDLE_DIR_PIN
#define SPINDLE_DIR_PIN 15
#endif

1
Marlin/pins_TEENSYLU.h Normal file → Executable file
View File

@ -79,7 +79,6 @@
#define BOARD_NAME "Teensylu" #define BOARD_NAME "Teensylu"
// //
// Limit Switch definitions that match the SCHEMATIC // Limit Switch definitions that match the SCHEMATIC
// //

View File

@ -32,6 +32,7 @@
#endif #endif
#define IS_RAMPS_EFB #define IS_RAMPS_EFB
#include "pins_RAMPS_13.h" #include "pins_RAMPS_13.h"
#undef FAN_PIN #undef FAN_PIN