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

pins_SAV_MKI.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * SAV MkI pin assignments (AT90USB1286)
  24. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  25. * http://www.pjrc.com/teensy/teensyduino.html
  26. * RepRap Clone Wars project board.
  27. */
  28. #ifndef __AVR_AT90USB1286__
  29. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  30. #endif
  31. #define DEFAULT_MACHINE_NAME "SAV MkI"
  32. #define DEFAULT_SOURCE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
  33. #define LARGE_FLASH true
  34. #define X_STEP_PIN 0
  35. #define X_DIR_PIN 1
  36. #define X_ENABLE_PIN 39
  37. #define Y_STEP_PIN 2
  38. #define Y_DIR_PIN 3
  39. #define Y_ENABLE_PIN 38
  40. #define Z_STEP_PIN 4
  41. #define Z_DIR_PIN 5
  42. #define Z_ENABLE_PIN 23
  43. #define E0_STEP_PIN 6
  44. #define E0_DIR_PIN 7
  45. #define E0_ENABLE_PIN 19
  46. #define HEATER_0_PIN 21 // Extruder
  47. #define HEATER_1_PIN -1
  48. #define HEATER_2_PIN -1
  49. #define HEATER_BED_PIN 20 // Bed
  50. #define FAN_PIN 16 // Fan -- from Teensyduino environment.
  51. // For the fan and Teensyduino uses a different pin mapping.
  52. #define X_STOP_PIN 13
  53. #define Y_STOP_PIN 14
  54. //#define Z_STOP_PIN 15
  55. #define Z_STOP_PIN 36 // For inductive sensor.
  56. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  57. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  58. #define TEMP_1_PIN -1
  59. #define TEMP_2_PIN -1
  60. #if DISABLED(SDSUPPORT)
  61. // these pins are defined in the SD library if building with SD support
  62. #define SCK_PIN 9
  63. #define MISO_PIN 11
  64. #define MOSI_PIN 10
  65. #endif
  66. #define SDSS 20 // PB0 - 8 in marlin env.
  67. // Extension header pin mapping
  68. // ----------------------------
  69. // SCL (I2C)-D0 A0 (An), IO
  70. // SDA (I2C)-D1 A1 (An), IO
  71. // RX1-D2 A2 (An), IO
  72. // TX1-D3 A3 (An), IO
  73. // PWM-D24 A4 (An), IO
  74. // 5V GND
  75. // 12V GND
  76. #define EXT_AUX_SCL_D0 0 // 0 (teensy), 24 (marlin)
  77. #define EXT_AUX_SDA_D1 1 // 1 (teensy), 25 (marlin)
  78. #define EXT_AUX_RX1_D2 26 // 2 (teensy), 26 (marlin)
  79. #define EXT_AUX_TX1_D3 27 // 3 (teensy), 27 (marlin)
  80. #define EXT_AUX_PWM_D24 12 // 24 (teensy), 12 (marlin)
  81. #define EXT_AUX_A0 0 // Analog
  82. #define EXT_AUX_A0_IO 40 // Digital IO, 38 (teensy), 40 (marlin)
  83. #define EXT_AUX_A1 1 // Analog
  84. #define EXT_AUX_A1_IO 41 // Digital IO, 39 (teensy), 41 (marlin)
  85. #define EXT_AUX_A2 2 // Analog
  86. #define EXT_AUX_A2_IO 42 // Digital IO, 40 (teensy), 42 (marlin)
  87. #define EXT_AUX_A3 3 // Analog
  88. #define EXT_AUX_A3_IO 43 // Digital IO, 41 (teensy), 43 (marlin)
  89. #define EXT_AUX_A4 4 // Analog
  90. #define EXT_AUX_A4_IO 44 // Digital IO, 42 (teensy), 44 (marlin)
  91. #define SDPOWER -1
  92. #define LED_PIN -1
  93. #define PS_ON_PIN -1
  94. #define SD_DETECT_PIN -1
  95. #define BEEPER_PIN -1
  96. #define LCD_PINS_RS -1
  97. #define LCD_PINS_ENABLE -1
  98. #define LCD_PINS_D4 -1
  99. #define LCD_PINS_D5 -1
  100. #define LCD_PINS_D6 -1
  101. #define LCD_PINS_D7 -1
  102. #if ENABLED(SAV_3DLCD)
  103. // For LCD SHIFT register LCD
  104. #define SR_DATA_PIN EXT_AUX_SDA_D1
  105. #define SR_CLK_PIN EXT_AUX_SCL_D0
  106. #endif // SAV_3DLCD
  107. #if ENABLED(SAV_3DLCD) || ENABLED(SAV_3DGLCD)
  108. #define BTN_EN1 EXT_AUX_A1_IO
  109. #define BTN_EN2 EXT_AUX_A0_IO
  110. #define BTN_ENC EXT_AUX_PWM_D24
  111. #define KILL_PIN EXT_AUX_A2_IO
  112. #define HOME_PIN EXT_AUX_A4_IO
  113. #endif // SAV_3DLCD || SAV_3DGLCD
  114. #define SERVO0_PIN 41 // In teensy's pin definition for pinMode (in servo.cpp)