My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_PRINTRBOARD.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. #define X_STEP_PIN 0
  15. #define X_DIR_PIN 1
  16. #define X_ENABLE_PIN 39
  17. #define Y_STEP_PIN 2
  18. #define Y_DIR_PIN 3
  19. #define Y_ENABLE_PIN 38
  20. #define Z_STEP_PIN 4
  21. #define Z_DIR_PIN 5
  22. #define Z_ENABLE_PIN 23
  23. #define E0_STEP_PIN 6
  24. #define E0_DIR_PIN 7
  25. #define E0_ENABLE_PIN 19
  26. #define HEATER_0_PIN 21 // Extruder
  27. #define HEATER_1_PIN 46
  28. #define HEATER_2_PIN 47
  29. #define HEATER_BED_PIN 20
  30. // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
  31. // fastio pin numbering otherwise
  32. #if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
  33. #define FAN_PIN 22
  34. #else
  35. #define FAN_PIN 16
  36. #endif
  37. #define X_STOP_PIN 35
  38. #ifdef SDSUPPORT
  39. #define Y_STOP_PIN 37 // Move Ystop to Estop socket
  40. #else
  41. #define Y_STOP_PIN 8 // Ystop in Ystop socket
  42. #endif
  43. #define Z_STOP_PIN 36
  44. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  45. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  46. #if ENABLED(FILAMENT_SENSOR)
  47. #define FILWIDTH_PIN 2
  48. #endif
  49. #define TEMP_1_PIN -1
  50. #define TEMP_2_PIN -1
  51. ////LCD Pin Setup////
  52. #define SDPOWER -1
  53. #define SDSS 8
  54. #define LED_PIN -1
  55. #define PS_ON_PIN -1
  56. #define KILL_PIN -1
  57. #define ALARM_PIN -1
  58. #if DISABLED(SDSUPPORT)
  59. // these pins are defined in the SD library if building with SD support
  60. #define SCK_PIN 9
  61. #define MISO_PIN 11
  62. #define MOSI_PIN 10
  63. #endif
  64. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  65. //we have no buzzer installed
  66. #define BEEPER_PIN -1
  67. //LCD Pins
  68. #if ENABLED(LCD_I2C_PANELOLU2)
  69. #define BTN_EN1 27 //RX1 - fastio.h pin mapping 27
  70. #define BTN_EN2 26 //TX1 - fastio.h pin mapping 26
  71. #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
  72. #define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping)
  73. #endif // LCD_I2C_PANELOLU2
  74. //not connected to a pin
  75. #define SDCARDDETECT -1
  76. #endif // ULTRA_LCD && NEWPANEL
  77. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  78. #define BEEPER_PIN 32 //FastIO
  79. // Pins for DOGM SPI LCD Support
  80. #define DOGLCD_A0 42 //Non-FastIO
  81. #define DOGLCD_CS 43 //Non-FastIO
  82. #define LCD_SCREEN_ROT_180
  83. //The encoder and click button (FastIO Pins)
  84. #define BTN_EN1 26
  85. #define BTN_EN2 27
  86. #define BTN_ENC 47 //the click switch
  87. #define SDSS 45
  88. #define SDCARDDETECT -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
  89. #if ENABLED(TEMP_STAT_LEDS)
  90. #define STAT_LED_RED 12 //Non-FastIO
  91. #define STAT_LED_BLUE 10 //Non-FastIO
  92. #endif
  93. #endif