pins_Einy_0_4.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*****************************************************************
  2. * EINY Rambo 0.4a Pin Assignments
  3. ******************************************************************/
  4. #define ELECTRONICS "EINY_04a"
  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 PAT9125_HWI2C
  18. #define X_TMC2130_CS 41
  19. #define X_TMC2130_DIAG 64 // !!! changed from 40 (EINY03)
  20. #define X_STEP_PIN 37
  21. #define X_DIR_PIN 49
  22. #define X_MIN_PIN 12
  23. //#define X_MAX_PIN 30
  24. //#define X_MIN_PIN X_TMC2130_DIAG
  25. #define X_MAX_PIN X_TMC2130_DIAG
  26. #define X_ENABLE_PIN 29
  27. #define X_MS1_PIN -1
  28. #define X_MS2_PIN -1
  29. #define Y_TMC2130_CS 39
  30. #define Y_TMC2130_DIAG 69
  31. #define Y_STEP_PIN 36
  32. #define Y_DIR_PIN 48
  33. #define Y_MIN_PIN 11
  34. //#define Y_MAX_PIN 24
  35. //#define Y_MIN_PIN Y_TMC2130_DIAG
  36. #define Y_MAX_PIN Y_TMC2130_DIAG
  37. #define Y_ENABLE_PIN 28
  38. #define Y_MS1_PIN -1
  39. #define Y_MS2_PIN -1
  40. #define Z_TMC2130_CS 67
  41. #define Z_TMC2130_DIAG 68
  42. #define Z_STEP_PIN 35
  43. #define Z_DIR_PIN 47
  44. #define Z_MIN_PIN 10
  45. #define Z_MAX_PIN 23
  46. //#define Z_MAX_PIN Z_TMC2130_DIAG
  47. #define Z_ENABLE_PIN 27
  48. #define Z_MS1_PIN -1
  49. #define Z_MS2_PIN -1
  50. #define HEATER_BED_PIN 4 //PG5
  51. #define TEMP_BED_PIN 2 //A2
  52. #define HEATER_0_PIN 3 //PE5
  53. #define TEMP_0_PIN 0 //A0
  54. #define HEATER_1_PIN -1
  55. #define TEMP_1_PIN 1 //A1
  56. #define HEATER_2_PIN -1
  57. #define TEMP_2_PIN -1
  58. #define TEMP_AMBIENT_PIN 6 //A6
  59. #define TEMP_PINDA_PIN 3 //A3
  60. #define E0_TMC2130_CS 66
  61. #define E0_TMC2130_DIAG 65
  62. #define E0_STEP_PIN 34
  63. #define E0_DIR_PIN 43
  64. #define E0_ENABLE_PIN 26
  65. #define E0_MS1_PIN -1
  66. #define E0_MS2_PIN -1
  67. #define MOTOR_CURRENT_PWM_XY_PIN 46
  68. #define MOTOR_CURRENT_PWM_Z_PIN 45
  69. #define MOTOR_CURRENT_PWM_E_PIN 44
  70. #define SDPOWER -1
  71. #define SDSS 77
  72. #define LED_PIN 13
  73. #define FAN_PIN 6
  74. #define FAN_1_PIN -1
  75. #define PS_ON_PIN -1
  76. #define KILL_PIN -1 // 80 with Smart Controller LCD
  77. #define SUICIDE_PIN -1 // PIN that has to be turned on right after start, to keep power flowing.
  78. #ifdef ULTRA_LCD
  79. //#define KILL_PIN 32
  80. #ifdef NEWPANEL
  81. #define LCD_PWM_PIN 32 // lcd backlight brightnes pwm control pin
  82. #define LCD_PWM_MAX 0x0f // lcd pwm maximum value (0x07=64Hz, 0x0f=32Hz, 0x1f=16Hz)
  83. #define BEEPER 84 // Beeper on AUX-4
  84. #define LCD_PINS_RS 82
  85. #define LCD_PINS_ENABLE 61 // !!! changed from 18 (EINY03)
  86. #define LCD_PINS_D4 59 // !!! changed from 19 (EINY03)
  87. #define LCD_PINS_D5 70
  88. #define LCD_PINS_D6 85
  89. #define LCD_PINS_D7 71
  90. //buttons are directly attached using AUX-2
  91. #define BTN_EN1 72
  92. #define BTN_EN2 14
  93. #define BTN_ENC 9 // the click
  94. #define SDCARDDETECT 15
  95. #define TACH_0 79 // !!! changed from 81 (EINY03)
  96. #define TACH_1 80
  97. #endif //NEWPANEL
  98. #endif //ULTRA_LCD