My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_ELEFU_3.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /**
  2. * Elefu RA Board Pin Assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define X_STEP_PIN 49
  8. #define X_DIR_PIN 13
  9. #define X_ENABLE_PIN 48
  10. #define X_MIN_PIN 35
  11. #define X_MAX_PIN 34
  12. #define Y_STEP_PIN 11
  13. #define Y_DIR_PIN 9
  14. #define Y_ENABLE_PIN 12
  15. #define Y_MIN_PIN 33
  16. #define Y_MAX_PIN 32
  17. #define Z_STEP_PIN 7
  18. #define Z_DIR_PIN 6
  19. #define Z_ENABLE_PIN 8
  20. #define Z_MIN_PIN 31
  21. #define Z_MAX_PIN 30
  22. #define E2_STEP_PIN 43
  23. #define E2_DIR_PIN 47
  24. #define E2_ENABLE_PIN 42
  25. #define E1_STEP_PIN 18
  26. #define E1_DIR_PIN 19
  27. #define E1_ENABLE_PIN 38
  28. #define E0_STEP_PIN 40
  29. #define E0_DIR_PIN 41
  30. #define E0_ENABLE_PIN 37
  31. #define SDPOWER -1
  32. #define LED_PIN -1 //Use +12V Aux port for LED Ring
  33. #define FAN_PIN 16 //5V PWM
  34. #define PS_ON_PIN 10 //Set to -1 if using a manual switch on the PWRSW Connector
  35. #define SLEEP_WAKE_PIN 26 //This feature still needs work
  36. #define HEATER_0_PIN 45 //12V PWM1
  37. #define HEATER_1_PIN 46 //12V PWM2
  38. #define HEATER_2_PIN 17 //12V PWM3
  39. #define HEATER_BED_PIN 44 //DOUBLE 12V PWM
  40. #define TEMP_0_PIN 3 //ANALOG NUMBERING
  41. #define TEMP_1_PIN 2 //ANALOG NUMBERING
  42. #define TEMP_2_PIN 1 //ANALOG NUMBERING
  43. #define TEMP_BED_PIN 0 //ANALOG NUMBERING
  44. #define BEEPER 36
  45. #define KILL_PIN -1
  46. // M240 Triggers a camera by emulating a Canon RC-1 Remote
  47. // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
  48. #define PHOTOGRAPH_PIN 29
  49. #ifdef RA_CONTROL_PANEL
  50. #define SDSS 53
  51. #define SDCARDDETECT 28
  52. #define BTN_EN1 14
  53. #define BTN_EN2 39
  54. #define BTN_ENC 15 //the click
  55. #define BLEN_C 2
  56. #define BLEN_B 1
  57. #define BLEN_A 0
  58. #endif // RA_CONTROL_PANEL
  59. #ifdef RA_DISCO
  60. //variables for which pins the TLC5947 is using
  61. #define TLC_CLOCK_PIN 25
  62. #define TLC_BLANK_PIN 23
  63. #define TLC_XLAT_PIN 22
  64. #define TLC_DATA_PIN 24
  65. //We also need to define pin to port number mapping for the 2560 to match the pins listed above. If you change the TLC pins, update this as well per the 2560 datasheet!
  66. //This currently only works with the RA Board.
  67. #define TLC_CLOCK_BIT 3 //bit 3 on port A
  68. #define TLC_CLOCK_PORT &PORTA //bit 3 on port A
  69. #define TLC_BLANK_BIT 1 //bit 1 on port A
  70. #define TLC_BLANK_PORT &PORTA //bit 1 on port A
  71. #define TLC_DATA_BIT 2 //bit 2 on port A
  72. #define TLC_DATA_PORT &PORTA //bit 2 on port A
  73. #define TLC_XLAT_BIT 0 //bit 0 on port A
  74. #define TLC_XLAT_PORT &PORTA //bit 0 on port A
  75. //change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
  76. //Leave it at at least 1 if you have enabled RA_LIGHTING
  77. //The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
  78. #define NUM_TLCS 2
  79. //These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
  80. //Modify them according to your specific situation.
  81. //NOTE: the array should be 8 long for every TLC you have. These defaults assume (2) TLCs.
  82. #define TRANS_ARRAY {0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8} //forwards
  83. //#define TRANS_ARRAY {7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13, 14, 15} //backwards
  84. #endif // RA_DISCO