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_REVF.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. #define Y_STOP_PIN 12
  39. #define Z_STOP_PIN 36
  40. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  41. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  42. #if ENABLED(FILAMENT_SENSOR)
  43. #define FILWIDTH_PIN 2
  44. #endif
  45. #define TEMP_1_PIN -1
  46. #define TEMP_2_PIN -1
  47. ////LCD Pin Setup////
  48. #define SDPOWER -1
  49. #define SDSS 20 // Teensylu pin mapping
  50. #define LED_PIN -1
  51. #define PS_ON_PIN -1
  52. #define KILL_PIN -1
  53. #define ALARM_PIN -1
  54. // uncomment to enable an I2C based DAC like on the Printrboard REVF
  55. #define DAC_STEPPER_CURRENT
  56. // Number of channels available for DAC, For Printrboar REVF there are 4
  57. #define DAC_STEPPER_ORDER {3,2,1,0}
  58. #define DAC_STEPPER_SENSE 0.11
  59. #define DAC_STEPPER_ADDRESS 0
  60. #define DAC_STEPPER_MAX 3520
  61. #define DAC_STEPPER_VREF 1 //internal Vref, gain 1x = 2.048V
  62. #define DAC_STEPPER_GAIN 0
  63. #if DISABLED(SDSUPPORT)
  64. // these pins are defined in the SD library if building with SD support
  65. #define SCK_PIN 9
  66. #define MISO_PIN 11
  67. #define MOSI_PIN 10
  68. #endif
  69. #if ENABLED(ULTRA_LCD)
  70. #define BEEPER_PIN -1
  71. #define LCD_PINS_RS 9
  72. #define LCD_PINS_ENABLE 8
  73. #define LCD_PINS_D4 7
  74. #define LCD_PINS_D5 6
  75. #define LCD_PINS_D6 5
  76. #define LCD_PINS_D7 4
  77. #define BTN_EN1 16
  78. #define BTN_EN2 17
  79. #define BTN_ENC 18//the click
  80. #define BLEN_C 2
  81. #define BLEN_B 1
  82. #define BLEN_A 0
  83. #define SD_DETECT_PIN -1
  84. //encoder rotation values
  85. #define encrot0 0
  86. #define encrot1 2
  87. #define encrot2 3
  88. #define encrot3 1
  89. #endif
  90. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  91. #define BEEPER_PIN 32 //FastIO
  92. // Pins for DOGM SPI LCD Support
  93. #define DOGLCD_A0 42 //Non-FastIO
  94. #define DOGLCD_CS 43 //Non-FastIO
  95. #define LCD_SCREEN_ROT_180
  96. //The encoder and click button (FastIO Pins)
  97. #define BTN_EN1 26
  98. #define BTN_EN2 27
  99. #define BTN_ENC 47 //the click switch
  100. #define SDSS 45
  101. #define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
  102. #if ENABLED(TEMP_STAT_LEDS)
  103. #define STAT_LED_RED 12 //Non-FastIO
  104. #define STAT_LED_BLUE 10 //Non-FastIO
  105. #endif
  106. #endif