My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_PRINTRBOARD.h 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /**
  2. * Printrboard pin assignments (AT90USB1286)
  3. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  4. * http://www.pjrc.com/teensy/teensyduino.html
  5. * See http://reprap.org/wiki/Printrboard for more info
  6. */
  7. #ifndef __AVR_AT90USB1286__
  8. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  9. #endif
  10. #if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
  11. #error These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
  12. #endif
  13. #define LARGE_FLASH true
  14. // Disable JTAG pins so they can be used for the Extrudrboard
  15. #define DISABLE_JTAG true
  16. #define X_STEP_PIN 0
  17. #define X_DIR_PIN 1
  18. #define X_ENABLE_PIN 39
  19. #define Y_STEP_PIN 2
  20. #define Y_DIR_PIN 3
  21. #define Y_ENABLE_PIN 38
  22. #define Z_STEP_PIN 4
  23. #define Z_DIR_PIN 5
  24. #define Z_ENABLE_PIN 23
  25. #define E0_STEP_PIN 6
  26. #define E0_DIR_PIN 7
  27. #define E0_ENABLE_PIN 19
  28. #define HEATER_0_PIN 21 // Extruder
  29. #define HEATER_1_PIN 46
  30. #define HEATER_2_PIN 47
  31. #define HEATER_BED_PIN 20
  32. // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
  33. // fastio pin numbering otherwise
  34. #if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
  35. #define FAN_PIN 22
  36. #else
  37. #define FAN_PIN 16
  38. #endif
  39. #define X_STOP_PIN 35
  40. #if ENABLED(SDSUPPORT)
  41. #define Y_STOP_PIN 37 // Move Ystop to Estop socket
  42. #else
  43. #define Y_STOP_PIN 8 // Ystop in Ystop socket
  44. #endif
  45. #define Z_STOP_PIN 36
  46. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  47. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  48. #if ENABLED(FILAMENT_SENSOR)
  49. #define FILWIDTH_PIN 2
  50. #endif
  51. #define TEMP_1_PIN -1
  52. #define TEMP_2_PIN -1
  53. ////LCD Pin Setup////
  54. #define SDPOWER -1
  55. #define SDSS 26
  56. #define LED_PIN -1
  57. #define PS_ON_PIN -1
  58. #define KILL_PIN -1
  59. #if DISABLED(SDSUPPORT)
  60. // these pins are defined in the SD library if building with SD support
  61. #define SCK_PIN 9
  62. #define MISO_PIN 11
  63. #define MOSI_PIN 10
  64. #endif
  65. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  66. //we have no buzzer installed
  67. #define BEEPER_PIN -1
  68. //LCD Pins
  69. #if ENABLED(LCD_I2C_PANELOLU2)
  70. #define BTN_EN1 27 //RX1 - fastio.h pin mapping 27
  71. #define BTN_EN2 26 //TX1 - fastio.h pin mapping 26
  72. #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
  73. #define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping)
  74. #else
  75. #define BTN_EN1 16
  76. #define BTN_EN2 17
  77. #define BTN_ENC 18//the click
  78. #endif // LCD_I2C_PANELOLU2
  79. //not connected to a pin
  80. #define SD_DETECT_PIN -1
  81. #define LCD_PINS_RS 9
  82. #define LCD_PINS_ENABLE 8
  83. #define LCD_PINS_D4 7
  84. #define LCD_PINS_D5 6
  85. #define LCD_PINS_D6 5
  86. #define LCD_PINS_D7 4
  87. #endif // ULTRA_LCD && NEWPANEL
  88. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  89. #define BEEPER_PIN 32 //FastIO
  90. // Pins for DOGM SPI LCD Support
  91. #define DOGLCD_A0 42 //Non-FastIO
  92. #define DOGLCD_CS 43 //Non-FastIO
  93. #define LCD_SCREEN_ROT_180
  94. //The encoder and click button (FastIO Pins)
  95. #define BTN_EN1 26
  96. #define BTN_EN2 27
  97. #define BTN_ENC 47 //the click switch
  98. #define SDSS 45
  99. #define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
  100. #if ENABLED(TEMP_STAT_LEDS)
  101. #define STAT_LED_RED 12 //Non-FastIO
  102. #define STAT_LED_BLUE 10 //Non-FastIO
  103. #endif
  104. #endif