pins_Einy_0_3.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*****************************************************************
  2. * EINY Rambo 0.3a Pin Assignments
  3. ******************************************************************/
  4. #define ELECTRONICS "EINY_03a"
  5. #define KNOWN_BOARD
  6. #ifndef __AVR_ATmega2560__
  7. #error Oops! Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu.
  8. #endif
  9. #define TMC2130
  10. #define PAT9125
  11. #define SWI2C // enable software i2c
  12. #define SWI2C_A8 // 8bit address functions
  13. #define PAT9125_SWI2C
  14. #define PAT9125_SWI2C_SDA 20 //SDA on P3
  15. #define PAT9125_SWI2C_SCL 21 //SCL on P3
  16. #define PAT9125_SWI2C_CFG 0xb1 //2us clock delay, 2048 cycles timeout
  17. //#define SWSPI_MISO 16 //RX2
  18. //#define SWSPI_MOSI 16 //RX2
  19. //#define SWSPI_SCK 17 //TX2
  20. //#define SWSPI_CS 20 //SDA
  21. ////#define SWI2C_SDA 20 //SDA
  22. ////#define SWI2C_SCL 21 //SCL
  23. //#define SWI2C_SDA 16 //RX2
  24. //#define SWI2C_SCL 17 //TX2
  25. #define X_TMC2130_CS 41
  26. #define X_TMC2130_DIAG 40
  27. #define X_STEP_PIN 37
  28. #define X_DIR_PIN 49
  29. //#define X_MIN_PIN 12
  30. //#define X_MAX_PIN 30
  31. #define X_MIN_PIN X_TMC2130_DIAG
  32. #define X_MAX_PIN X_TMC2130_DIAG
  33. #define X_ENABLE_PIN 29
  34. #define X_MS1_PIN -1
  35. #define X_MS2_PIN -1
  36. #define Y_TMC2130_CS 39
  37. #define Y_TMC2130_DIAG 69
  38. #define Y_STEP_PIN 36
  39. #define Y_DIR_PIN 48
  40. //#define Y_MIN_PIN 11
  41. //#define Y_MAX_PIN 24
  42. #define Y_MIN_PIN Y_TMC2130_DIAG
  43. #define Y_MAX_PIN Y_TMC2130_DIAG
  44. #define Y_ENABLE_PIN 28
  45. #define Y_MS1_PIN -1
  46. #define Y_MS2_PIN -1
  47. #define Z_TMC2130_CS 67
  48. #define Z_TMC2130_DIAG 68
  49. #define Z_STEP_PIN 35
  50. #define Z_DIR_PIN 47
  51. #define Z_MIN_PIN 10
  52. #define Z_MAX_PIN 23
  53. //#define Z_MAX_PIN Z_TMC2130_DIAG
  54. #define Z_ENABLE_PIN 27
  55. #define Z_MS1_PIN -1
  56. #define Z_MS2_PIN -1
  57. #define HEATER_BED_PIN 4
  58. #define TEMP_BED_PIN 2
  59. #define HEATER_0_PIN 3
  60. #define TEMP_0_PIN 0
  61. #define HEATER_1_PIN 7
  62. #define TEMP_1_PIN 1
  63. #ifdef BARICUDA
  64. #define HEATER_2_PIN 6
  65. #else
  66. #define HEATER_2_PIN -1
  67. #endif
  68. #define TEMP_2_PIN -1
  69. #define E0_TMC2130_CS 66
  70. #define E0_TMC2130_DIAG 65
  71. #define E0_STEP_PIN 34
  72. #define E0_DIR_PIN 43
  73. #define E0_ENABLE_PIN 26
  74. #define E0_MS1_PIN -1
  75. #define E0_MS2_PIN -1
  76. #define MOTOR_CURRENT_PWM_XY_PIN 46
  77. #define MOTOR_CURRENT_PWM_Z_PIN 45
  78. #define MOTOR_CURRENT_PWM_E_PIN 44
  79. #define SDPOWER -1
  80. #define SDSS 53
  81. #define LED_PIN 13
  82. #define FAN_PIN 6
  83. #define FAN_1_PIN -1
  84. #define PS_ON_PIN -1
  85. #define KILL_PIN -1 // 80 with Smart Controller LCD
  86. #define SUICIDE_PIN -1 // PIN that has to be turned on right after start, to keep power flowing.
  87. #ifdef ULTRA_LCD
  88. //#define KILL_PIN 32
  89. #ifdef NEWPANEL
  90. #define BEEPER 84 // Beeper on AUX-4
  91. #define LCD_PINS_RS 82
  92. #define LCD_PINS_ENABLE 18
  93. #define LCD_PINS_D4 19
  94. #define LCD_PINS_D5 70
  95. #define LCD_PINS_D6 85
  96. #define LCD_PINS_D7 71
  97. //buttons are directly attached using AUX-2
  98. #define BTN_EN1 72
  99. #define BTN_EN2 14
  100. #define BTN_ENC 9 // the click
  101. #define SDCARDDETECT 15
  102. #define TACH_0 81
  103. #define TACH_1 80
  104. #endif //NEWPANEL
  105. #endif //ULTRA_LCD