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

pins_MRR_ESPE.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * MRR ESPE pin assignments
  25. * MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
  26. * Supports 5 stepper drivers (using I2S stepper stream), heated bed,
  27. * single hotend, and LCD controller.
  28. */
  29. #ifndef ARDUINO_ARCH_ESP32
  30. #error "Oops! Select an ESP32 board in 'Tools > Board.'"
  31. #elif EXTRUDERS > 2 || E_STEPPERS > 2
  32. #error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
  33. #elif HOTENDS > 1
  34. #error "MRR ESPE currently supports only one hotend. Comment out this line to continue."
  35. #endif
  36. #define BOARD_INFO_NAME "MRR ESPE"
  37. #define BOARD_WEBSITE_URL "github.com/maplerainresearch/MRR_ESPE"
  38. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  39. //
  40. // Limit Switches
  41. //
  42. #define X_STOP_PIN 35
  43. #define Y_STOP_PIN 32
  44. #define Z_STOP_PIN 33
  45. //
  46. // Enable I2S stepper stream
  47. //
  48. #undef I2S_STEPPER_STREAM
  49. #define I2S_STEPPER_STREAM
  50. #undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
  51. #define I2S_WS 26
  52. #define I2S_BCK 25
  53. #define I2S_DATA 27
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN 129
  58. #define X_DIR_PIN 130
  59. #define X_ENABLE_PIN 128
  60. //#define X_CS_PIN 21
  61. #define Y_STEP_PIN 132
  62. #define Y_DIR_PIN 133
  63. #define Y_ENABLE_PIN 131
  64. //#define Y_CS_PIN 22
  65. #define Z_STEP_PIN 135
  66. #define Z_DIR_PIN 136
  67. #define Z_ENABLE_PIN 134
  68. //#define Z_CS_PIN 5 // SS_PIN
  69. #define E0_STEP_PIN 138
  70. #define E0_DIR_PIN 139
  71. #define E0_ENABLE_PIN 137
  72. //#define E0_CS_PIN 21
  73. #define E1_STEP_PIN 141
  74. #define E1_DIR_PIN 142
  75. #define E1_ENABLE_PIN 140
  76. //#define E1_CS_PIN 22
  77. #define Z2_STEP_PIN 141
  78. #define Z2_DIR_PIN 142
  79. #define Z2_ENABLE_PIN 140
  80. //#define Z2_CS_PIN 5
  81. //
  82. // Temperature Sensors
  83. //
  84. #define TEMP_0_PIN 36 // Analog Input
  85. #define TEMP_1_PIN 34 // Analog Input
  86. #define TEMP_BED_PIN 39 // Analog Input
  87. //
  88. // Heaters / Fans
  89. //
  90. #define HEATER_0_PIN 145 // 2
  91. #define FAN_PIN 146 // 15
  92. #define HEATER_BED_PIN 144 // 4
  93. #define CONTROLLER_FAN_PIN 147
  94. //#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
  95. //#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
  96. #define FAN1_PIN 149
  97. //
  98. // MicroSD card
  99. //
  100. #define MOSI_PIN 23
  101. #define MISO_PIN 19
  102. #define SCK_PIN 18
  103. #define SDSS 5
  104. //////////////////////////
  105. // LCDs and Controllers //
  106. //////////////////////////
  107. #if HAS_GRAPHICAL_LCD
  108. #define LCD_PINS_RS 13
  109. #define LCD_PINS_ENABLE 17
  110. #define LCD_PINS_D4 16
  111. #if ENABLED(CR10_STOCKDISPLAY)
  112. #define BEEPER_PIN 151
  113. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  114. #define BEEPER_PIN 151
  115. //#define LCD_PINS_D5 150
  116. //#define LCD_PINS_D6 151
  117. //#define LCD_PINS_D7 153
  118. #else
  119. #error "Only CR10_STOCKDISPLAY and REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER are currently supported. Comment out this line to continue."
  120. #endif
  121. #define BTN_EN1 0
  122. #define BTN_EN2 12
  123. #define BTN_ENC 14
  124. #endif // HAS_GRAPHICAL_LCD