My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_SANGUINOLOLU_11.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 FAN_PIN == 12 || FAN_PIN ==13
  21. // #define FAN_SOFT_PWM
  22. // #endif
  23. #if MB(MELZI)
  24. #define LED_PIN 27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */
  25. #define FAN_PIN 4 // Works for Panelolu2 too
  26. #endif
  27. #if MB(STB_11)
  28. #define FAN_PIN 4
  29. // Uncomment this if you have the first generation (V1.10) of STBs board
  30. #define LCD_PIN_BL 17 // LCD backlight LED
  31. #endif
  32. #if MB(AZTEEG_X1)
  33. #define FAN_PIN 4
  34. #endif
  35. #ifdef Z_PROBE_SLED
  36. #define SLED_PIN -1
  37. #endif
  38. #ifdef NUM_SERVOS
  39. #define SERVO0_PIN -1
  40. #if NUM_SERVOS > 1
  41. #define SERVO1_PIN -1
  42. #endif
  43. #if NUM_SERVOS > 2
  44. #define SERVO2_PIN -1
  45. #endif
  46. #if NUM_SERVOS > 3
  47. #define SERVO3_PIN -1
  48. #endif
  49. #endif
  50. #define PS_ON_PIN -1
  51. #define KILL_PIN -1
  52. #define HEATER_0_PIN 13 // (extruder)
  53. #define HEATER_1_PIN -1
  54. #define HEATER_2_PIN -1
  55. #ifdef SANGUINOLOLU_V_1_2
  56. #define HEATER_BED_PIN 12 // (bed)
  57. #define X_ENABLE_PIN 14
  58. #define Y_ENABLE_PIN 14
  59. #define Z_ENABLE_PIN 26
  60. #define E0_ENABLE_PIN 14
  61. #ifdef LCD_I2C_PANELOLU2
  62. #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
  63. #endif
  64. #else
  65. #define HEATER_BED_PIN 14 // (bed)
  66. #define X_ENABLE_PIN -1
  67. #define Y_ENABLE_PIN -1
  68. #define Z_ENABLE_PIN -1
  69. #define E0_ENABLE_PIN -1
  70. #endif
  71. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  72. #define TEMP_1_PIN -1
  73. #define TEMP_2_PIN -1
  74. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  75. #define SDPOWER -1
  76. #define SDSS 31
  77. /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
  78. //#define SDSS 24
  79. #ifdef ULTRA_LCD
  80. #ifdef NEWPANEL
  81. //we have no buzzer installed
  82. #define BEEPER -1
  83. //LCD Pins
  84. #ifdef DOGLCD
  85. #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
  86. #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
  87. #define LCD_PINS_ENABLE 29 //SID (MOSI)
  88. #define LCD_PINS_D4 17 //SCK (CLK) clock
  89. #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
  90. #else
  91. // Pins for DOGM SPI LCD Support
  92. #define DOGLCD_A0 30
  93. #define DOGLCD_CS 29
  94. #define LCD_CONTRAST 1
  95. #endif
  96. // Uncomment screen orientation
  97. #define LCD_SCREEN_ROT_0
  98. // #define LCD_SCREEN_ROT_90
  99. // #define LCD_SCREEN_ROT_180
  100. // #define LCD_SCREEN_ROT_270
  101. #else // standard Hitachi LCD controller
  102. #define LCD_PINS_RS 4
  103. #define LCD_PINS_ENABLE 17
  104. #define LCD_PINS_D4 30
  105. #define LCD_PINS_D5 29
  106. #define LCD_PINS_D6 28
  107. #define LCD_PINS_D7 27
  108. #endif
  109. //The encoder and click button
  110. #define BTN_EN1 11
  111. #define BTN_EN2 10
  112. #ifdef LCD_I2C_PANELOLU2
  113. #if MB(MELZI)
  114. #define BTN_ENC 29 //the click switch
  115. #define LCD_SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board
  116. #else
  117. #define BTN_ENC 30 //the click switch
  118. #endif
  119. #else
  120. #define BTN_ENC 16 //the click switch
  121. #define LCD_SDSS 28 //to use the SD card reader on the smart controller rather than the melzi board
  122. #endif //Panelolu2
  123. //not connected to a pin
  124. #define SDCARDDETECT -1
  125. #endif //NEWPANEL
  126. #endif //ULTRA_LCD
  127. #ifdef 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 //the click switch
  144. //not connected to a pin
  145. #define SDCARDDETECT -1
  146. #endif //Makrpanel