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

pins_SANGUINOLOLU_11.h 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. * Sanguinololu board pin assignments
  24. */
  25. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
  26. #error "Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu."
  27. #endif
  28. #ifndef BOARD_NAME
  29. #define BOARD_NAME "Sanguinololu <1.2"
  30. #endif
  31. #define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D))
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN 18
  36. #define Y_STOP_PIN 19
  37. #define Z_STOP_PIN 20
  38. //
  39. // Z Probe (when not Z_MIN_PIN)
  40. //
  41. #if ENABLED(Z_PROBE_SLED)
  42. #define SLED_PIN -1
  43. #endif
  44. //
  45. // Steppers
  46. //
  47. #define X_STEP_PIN 15
  48. #define X_DIR_PIN 21
  49. #define Y_STEP_PIN 22
  50. #define Y_DIR_PIN 23
  51. #define Z_STEP_PIN 3
  52. #define Z_DIR_PIN 2
  53. #define E0_STEP_PIN 1
  54. #define E0_DIR_PIN 0
  55. //
  56. // Temperature Sensors
  57. //
  58. #define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
  59. #define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
  60. //
  61. // Heaters / Fans
  62. //
  63. #define HEATER_0_PIN 13 // (extruder)
  64. #if ENABLED(SANGUINOLOLU_V_1_2)
  65. #define HEATER_BED_PIN 12 // (bed)
  66. #define X_ENABLE_PIN 14
  67. #define Y_ENABLE_PIN 14
  68. #define Z_ENABLE_PIN 26
  69. #define E0_ENABLE_PIN 14
  70. #if ENABLED(LCD_I2C_PANELOLU2)
  71. #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
  72. #endif
  73. #else
  74. #define HEATER_BED_PIN 14 // (bed)
  75. #define X_ENABLE_PIN -1
  76. #define Y_ENABLE_PIN -1
  77. #define Z_ENABLE_PIN -1
  78. #define E0_ENABLE_PIN -1
  79. #endif
  80. #if MB(AZTEEG_X1) || MB(STB_11) || IS_MELZI
  81. #define FAN_PIN 4 // Works for Panelolu2 too
  82. #endif
  83. //
  84. // Misc. Functions
  85. //
  86. /**
  87. * On some broken versions of the Sanguino libraries the pin definitions are wrong,
  88. * which then needs SDSS as pin 24. But you should upgrade your Sanguino libraries! See #368.
  89. */
  90. //#define SDSS 24
  91. #define SDSS 31
  92. #if IS_MELZI
  93. #define LED_PIN 27 // On some broken versions of the Sanguino libraries the pin definitions are wrong, so LED_PIN needs to be 28. But you should upgrade your Sanguino libraries! See #368.
  94. #elif MB(STB_11)
  95. #define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
  96. #endif
  97. //
  98. // LCD / Controller
  99. //
  100. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  101. // No buzzer installed
  102. #define BEEPER_PIN -1
  103. // LCD Pins
  104. #if ENABLED(DOGLCD)
  105. #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
  106. #if IS_MELZI // Melzi board
  107. #define LCD_PINS_RS 30 // CS chip select /SS chip slave select
  108. #define LCD_PINS_ENABLE 29 // SID (MOSI)
  109. #define LCD_PINS_D4 17 // SCK (CLK) clock
  110. // Pin 27 is taken by LED_PIN, but Melzi LED does nothing with
  111. // Marlin so this can be used for BEEPER_PIN. You can use this pin
  112. // with M42 instead of BEEPER_PIN.
  113. #define BEEPER_PIN 27
  114. #else // Sanguinololu 1.3
  115. #define LCD_PINS_RS 4
  116. #define LCD_PINS_ENABLE 17
  117. #define LCD_PINS_D4 30
  118. #define LCD_PINS_D5 29
  119. #define LCD_PINS_D6 28
  120. #define LCD_PINS_D7 27
  121. #endif
  122. #else // DOGM SPI LCD Support
  123. #define DOGLCD_A0 30
  124. #define DOGLCD_CS 29
  125. #define LCD_CONTRAST 1
  126. #endif
  127. // Uncomment screen orientation
  128. #define LCD_SCREEN_ROT_0
  129. //#define LCD_SCREEN_ROT_90
  130. //#define LCD_SCREEN_ROT_180
  131. //#define LCD_SCREEN_ROT_270
  132. #else // !DOGLCD - Standard Hitachi LCD controller
  133. #define LCD_PINS_RS 4
  134. #define LCD_PINS_ENABLE 17
  135. #define LCD_PINS_D4 30
  136. #define LCD_PINS_D5 29
  137. #define LCD_PINS_D6 28
  138. #define LCD_PINS_D7 27
  139. #endif // !DOGLCD
  140. //The encoder and click button
  141. #define BTN_EN1 11
  142. #define BTN_EN2 10
  143. #if ENABLED(LCD_I2C_PANELOLU2)
  144. #if IS_MELZI
  145. #define BTN_ENC 29
  146. #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
  147. #else
  148. #define BTN_ENC 30
  149. #endif
  150. #else
  151. #define BTN_ENC 16
  152. #define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
  153. #endif // Panelolu2
  154. #define SD_DETECT_PIN -1
  155. #elif ENABLED(MAKRPANEL)
  156. #define BEEPER_PIN 29
  157. // Pins for DOGM SPI LCD Support
  158. #define DOGLCD_A0 30
  159. #define DOGLCD_CS 17
  160. #define LCD_BACKLIGHT_PIN 28 // backlight LED on PA3
  161. // GLCD features
  162. #define LCD_CONTRAST 1
  163. // Uncomment screen orientation
  164. #define LCD_SCREEN_ROT_0
  165. //#define LCD_SCREEN_ROT_90
  166. //#define LCD_SCREEN_ROT_180
  167. //#define LCD_SCREEN_ROT_270
  168. //The encoder and click button
  169. #define BTN_EN1 11
  170. #define BTN_EN2 10
  171. #define BTN_ENC 16
  172. #define SD_DETECT_PIN -1
  173. #endif // MAKRPANEL