My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_SANGUINOLOLU_11.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. #define PS_ON_PIN -1
  32. #define KILL_PIN -1
  33. #define HEATER_0_PIN 13 // (extruder)
  34. #define HEATER_1_PIN -1
  35. #define HEATER_2_PIN -1
  36. #if ENABLED(SANGUINOLOLU_V_1_2)
  37. #define HEATER_BED_PIN 12 // (bed)
  38. #define X_ENABLE_PIN 14
  39. #define Y_ENABLE_PIN 14
  40. #define Z_ENABLE_PIN 26
  41. #define E0_ENABLE_PIN 14
  42. #if ENABLED(LCD_I2C_PANELOLU2)
  43. #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
  44. #endif
  45. #else
  46. #define HEATER_BED_PIN 14 // (bed)
  47. #define X_ENABLE_PIN -1
  48. #define Y_ENABLE_PIN -1
  49. #define Z_ENABLE_PIN -1
  50. #define E0_ENABLE_PIN -1
  51. #endif
  52. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  53. #define TEMP_1_PIN -1
  54. #define TEMP_2_PIN -1
  55. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  56. #define SDPOWER -1
  57. #define SDSS 31
  58. /**
  59. * On some broken versions of the Sanguino libraries the pin definitions are wrong,
  60. * which then needs SDSS as pin 24. But you should upgrade your Sanguino libraries! See #368.
  61. */
  62. //#define SDSS 24
  63. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  64. // No buzzer installed
  65. #define BEEPER_PIN -1
  66. // LCD Pins
  67. #if ENABLED(DOGLCD)
  68. #if ENABLED(U8GLIB_ST7920) //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
  69. #if MB(MELZI) // Melzi board
  70. #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
  71. #define LCD_PINS_ENABLE 29 //SID (MOSI)
  72. #define LCD_PINS_D4 17 //SCK (CLK) clock
  73. #define BEEPER_PIN 27 // Pin 27 is taken by LED_PIN, but Melzi LED does nothing with Marlin so this can be used for BEEPER_PIN. You can use this pin with M42 instead of BEEPER_PIN.
  74. #else // Sanguinololu 1.3
  75. #define LCD_PINS_RS 4
  76. #define LCD_PINS_ENABLE 17
  77. #define LCD_PINS_D4 30
  78. #define LCD_PINS_D5 29
  79. #define LCD_PINS_D6 28
  80. #define LCD_PINS_D7 27
  81. #endif
  82. #else // DOGM SPI LCD Support
  83. #define DOGLCD_A0 30
  84. #define DOGLCD_CS 29
  85. #define LCD_CONTRAST 1
  86. #endif
  87. // Uncomment screen orientation
  88. #define LCD_SCREEN_ROT_0
  89. // #define LCD_SCREEN_ROT_90
  90. // #define LCD_SCREEN_ROT_180
  91. // #define LCD_SCREEN_ROT_270
  92. #else // !DOGLCD - Standard Hitachi LCD controller
  93. #define LCD_PINS_RS 4
  94. #define LCD_PINS_ENABLE 17
  95. #define LCD_PINS_D4 30
  96. #define LCD_PINS_D5 29
  97. #define LCD_PINS_D6 28
  98. #define LCD_PINS_D7 27
  99. #endif // !DOGLCD
  100. //The encoder and click button
  101. #define BTN_EN1 11
  102. #define BTN_EN2 10
  103. #if ENABLED(LCD_I2C_PANELOLU2)
  104. #if MB(MELZI)
  105. #define BTN_ENC 29
  106. #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
  107. #else
  108. #define BTN_ENC 30
  109. #endif
  110. #else
  111. #define BTN_ENC 16
  112. #define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
  113. #endif //Panelolu2
  114. #define SD_DETECT_PIN -1
  115. #elif ENABLED(MAKRPANEL)
  116. #define BEEPER_PIN 29
  117. // Pins for DOGM SPI LCD Support
  118. #define DOGLCD_A0 30
  119. #define DOGLCD_CS 17
  120. #define LCD_PIN_BL 28 // backlight LED on PA3
  121. // GLCD features
  122. #define LCD_CONTRAST 1
  123. // Uncomment screen orientation
  124. #define LCD_SCREEN_ROT_0
  125. // #define LCD_SCREEN_ROT_90
  126. // #define LCD_SCREEN_ROT_180
  127. // #define LCD_SCREEN_ROT_270
  128. //The encoder and click button
  129. #define BTN_EN1 11
  130. #define BTN_EN2 10
  131. #define BTN_ENC 16
  132. #define SD_DETECT_PIN -1
  133. #endif // MAKRPANEL
  134. // #if FAN_PIN == 12 || FAN_PIN ==13
  135. // #define FAN_SOFT_PWM
  136. // #endif