My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pins_SANGUINOLOLU_11.h 4.9KB

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