My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_SAV_MKI.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /**
  2. * SAV MkI pin assignments (AT90USB1286)
  3. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  4. * http://www.pjrc.com/teensy/teensyduino.html
  5. * RepRap Clone Wars project board.
  6. */
  7. #ifndef __AVR_AT90USB1286__
  8. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  9. #endif
  10. #define LARGE_FLASH true
  11. #define X_STEP_PIN 0
  12. #define X_DIR_PIN 1
  13. #define X_ENABLE_PIN 39
  14. #define Y_STEP_PIN 2
  15. #define Y_DIR_PIN 3
  16. #define Y_ENABLE_PIN 38
  17. #define Z_STEP_PIN 4
  18. #define Z_DIR_PIN 5
  19. #define Z_ENABLE_PIN 23
  20. #define E0_STEP_PIN 6
  21. #define E0_DIR_PIN 7
  22. #define E0_ENABLE_PIN 19
  23. #define HEATER_0_PIN 21 // Extruder
  24. #define HEATER_1_PIN -1
  25. #define HEATER_2_PIN -1
  26. #define HEATER_BED_PIN 20 // Bed
  27. #define FAN_PIN 16 // Fan -- from Teensyduino environment.
  28. // For the fan and Teensyduino uses a different pin mapping.
  29. #define X_STOP_PIN 13
  30. #define Y_STOP_PIN 14
  31. //#define Z_STOP_PIN 15
  32. #define Z_STOP_PIN 36 // For inductive sensor.
  33. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  34. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  35. #define TEMP_1_PIN -1
  36. #define TEMP_2_PIN -1
  37. #ifndef SDSUPPORT
  38. // these pins are defined in the SD library if building with SD support
  39. #define SCK_PIN 9
  40. #define MISO_PIN 11
  41. #define MOSI_PIN 10
  42. #endif
  43. #define SDSS 20 // PB0 - 8 in marlin env.
  44. // Extension header pin mapping
  45. // ----------------------------
  46. // SCL (I2C)-D0 A0 (An), IO
  47. // SDA (I2C)-D1 A1 (An), IO
  48. // RX1-D2 A2 (An), IO
  49. // TX1-D3 A3 (An), IO
  50. // PWM-D24 A4 (An), IO
  51. // 5V GND
  52. // 12V GND
  53. #define EXT_AUX_SCL_D0 0 // 0 (teensy), 24 (marlin)
  54. #define EXT_AUX_SDA_D1 1 // 1 (teensy), 25 (marlin)
  55. #define EXT_AUX_RX1_D2 26 // 2 (teensy), 26 (marlin)
  56. #define EXT_AUX_TX1_D3 27 // 3 (teensy), 27 (marlin)
  57. #define EXT_AUX_PWM_D24 12 // 24 (teensy), 12 (marlin)
  58. #define EXT_AUX_A0 0 // Analog
  59. #define EXT_AUX_A0_IO 40 // Digital IO, 38 (teensy), 40 (marlin)
  60. #define EXT_AUX_A1 1 // Analog
  61. #define EXT_AUX_A1_IO 41 // Digital IO, 39 (teensy), 41 (marlin)
  62. #define EXT_AUX_A2 2 // Analog
  63. #define EXT_AUX_A2_IO 42 // Digital IO, 40 (teensy), 42 (marlin)
  64. #define EXT_AUX_A3 3 // Analog
  65. #define EXT_AUX_A3_IO 43 // Digital IO, 41 (teensy), 43 (marlin)
  66. #define EXT_AUX_A4 4 // Analog
  67. #define EXT_AUX_A4_IO 44 // Digital IO, 42 (teensy), 44 (marlin)
  68. #define SDPOWER -1
  69. #define LED_PIN -1
  70. #define PS_ON_PIN -1
  71. #define ALARM_PIN -1
  72. #define SDCARDDETECT -1
  73. #define BEEPER -1
  74. #define LCD_PINS_RS -1
  75. #define LCD_PINS_ENABLE -1
  76. #define LCD_PINS_D4 -1
  77. #define LCD_PINS_D5 -1
  78. #define LCD_PINS_D6 -1
  79. #define LCD_PINS_D7 -1
  80. #ifdef SAV_3DLCD
  81. // For LCD SHIFT register LCD
  82. #define SR_DATA_PIN EXT_AUX_SDA_D1
  83. #define SR_CLK_PIN EXT_AUX_SCL_D0
  84. #endif // SAV_3DLCD
  85. #if defined(SAV_3DLCD)||defined(SAV_3DGLCD)
  86. #define BTN_EN1 EXT_AUX_A1_IO
  87. #define BTN_EN2 EXT_AUX_A0_IO
  88. #define BTN_ENC EXT_AUX_PWM_D24
  89. #define KILL_PIN EXT_AUX_A2_IO
  90. #define HOME_PIN EXT_AUX_A4_IO
  91. #endif // SAV_3DLCD || SAV_3DGLCD
  92. #ifdef NUM_SERVOS
  93. #define SERVO0_PIN 41 // In teensy's pin definition for pinMode (in servo.cpp)
  94. #endif