My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

pins_SANGUINOLOLU_11.h 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /**
  2. * Sanguinololu board pin assignments
  3. */
  4. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
  5. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define X_STEP_PIN 15
  8. #define X_DIR_PIN 21
  9. #define X_STOP_PIN 18
  10. #define Y_STEP_PIN 22
  11. #define Y_DIR_PIN 23
  12. #define Y_STOP_PIN 19
  13. #define Z_STEP_PIN 3
  14. #define Z_DIR_PIN 2
  15. #define Z_STOP_PIN 20
  16. #define E0_STEP_PIN 1
  17. #define E0_DIR_PIN 0
  18. #define LED_PIN -1
  19. #define FAN_PIN -1
  20. #if MB(AZTEEG_X1) || MB(STB_11) || MB(MELZI)
  21. #define FAN_PIN 4 // Works for Panelolu2 too
  22. #if MB(MELZI)
  23. #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.
  24. #elif MB(STB_11)
  25. #define LCD_PIN_BL 17 // LCD backlight LED
  26. #endif
  27. #endif
  28. #if ENABLED(Z_PROBE_SLED)
  29. #define SLED_PIN -1
  30. #endif
  31. #if HAS_SERVOS
  32. #define SERVO0_PIN -1
  33. #if NUM_SERVOS > 1
  34. #define SERVO1_PIN -1
  35. #if NUM_SERVOS > 2
  36. #define SERVO2_PIN -1
  37. #if NUM_SERVOS > 3
  38. #define SERVO3_PIN -1
  39. #endif
  40. #endif
  41. #endif
  42. #endif
  43. #define PS_ON_PIN -1
  44. #define KILL_PIN -1
  45. #define HEATER_0_PIN 13 // (extruder)
  46. #define HEATER_1_PIN -1
  47. #define HEATER_2_PIN -1
  48. #if ENABLED(SANGUINOLOLU_V_1_2)
  49. #define HEATER_BED_PIN 12 // (bed)
  50. #define X_ENABLE_PIN 14
  51. #define Y_ENABLE_PIN 14
  52. #define Z_ENABLE_PIN 26
  53. #define E0_ENABLE_PIN 14
  54. #if ENABLED(LCD_I2C_PANELOLU2)
  55. #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
  56. #endif
  57. #else
  58. #define HEATER_BED_PIN 14 // (bed)
  59. #define X_ENABLE_PIN -1
  60. #define Y_ENABLE_PIN -1
  61. #define Z_ENABLE_PIN -1
  62. #define E0_ENABLE_PIN -1
  63. #endif
  64. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  65. #define TEMP_1_PIN -1
  66. #define TEMP_2_PIN -1
  67. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  68. #define SDPOWER -1
  69. #define SDSS 31
  70. /**
  71. * On some broken versions of the Sanguino libraries the pin definitions are wrong,
  72. * which then needs SDSS as pin 24. But you should upgrade your Sanguino libraries! See #368.
  73. */
  74. //#define SDSS 24
  75. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  76. // No buzzer installed
  77. #define BEEPER -1
  78. // LCD Pins
  79. #if ENABLED(DOGLCD)
  80. #if ENABLED(U8GLIB_ST7920) //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
  81. #if MB(MELZI) // Melzi board
  82. #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
  83. #define LCD_PINS_ENABLE 29 //SID (MOSI)
  84. #define LCD_PINS_D4 17 //SCK (CLK) clock
  85. #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER
  86. #else // Sanguinololu 1.3
  87. #define LCD_PINS_RS 4
  88. #define LCD_PINS_ENABLE 17
  89. #define LCD_PINS_D4 30
  90. #define LCD_PINS_D5 29
  91. #define LCD_PINS_D6 28
  92. #define LCD_PINS_D7 27
  93. #endif
  94. #else // DOGM SPI LCD Support
  95. #define DOGLCD_A0 30
  96. #define DOGLCD_CS 29
  97. #define LCD_CONTRAST 1
  98. #endif
  99. // Uncomment screen orientation
  100. #define LCD_SCREEN_ROT_0
  101. // #define LCD_SCREEN_ROT_90
  102. // #define LCD_SCREEN_ROT_180
  103. // #define LCD_SCREEN_ROT_270
  104. #else // !DOGLCD - Standard Hitachi LCD controller
  105. #define LCD_PINS_RS 4
  106. #define LCD_PINS_ENABLE 17
  107. #define LCD_PINS_D4 30
  108. #define LCD_PINS_D5 29
  109. #define LCD_PINS_D6 28
  110. #define LCD_PINS_D7 27
  111. #endif // !DOGLCD
  112. //The encoder and click button
  113. #define BTN_EN1 11
  114. #define BTN_EN2 10
  115. #if ENABLED(LCD_I2C_PANELOLU2)
  116. #if MB(MELZI)
  117. #define BTN_ENC 29
  118. #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
  119. #else
  120. #define BTN_ENC 30
  121. #endif
  122. #else
  123. #define BTN_ENC 16
  124. #define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
  125. #endif //Panelolu2
  126. #define SDCARDDETECT -1
  127. #elif ENABLED(MAKRPANEL)
  128. #define BEEPER 29
  129. // Pins for DOGM SPI LCD Support
  130. #define DOGLCD_A0 30
  131. #define DOGLCD_CS 17
  132. #define LCD_PIN_BL 28 // backlight LED on PA3
  133. // GLCD features
  134. #define LCD_CONTRAST 1
  135. // Uncomment screen orientation
  136. #define LCD_SCREEN_ROT_0
  137. // #define LCD_SCREEN_ROT_90
  138. // #define LCD_SCREEN_ROT_180
  139. // #define LCD_SCREEN_ROT_270
  140. //The encoder and click button
  141. #define BTN_EN1 11
  142. #define BTN_EN2 10
  143. #define BTN_ENC 16
  144. #define SDCARDDETECT -1
  145. #endif // MAKRPANEL
  146. // #if FAN_PIN == 12 || FAN_PIN ==13
  147. // #define FAN_SOFT_PWM
  148. // #endif