My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_PICA.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Arduino Mega with PICA pin assignments
  25. *
  26. * PICA is Power, Interface, and Control Adapter and is open source hardware.
  27. * See https://github.com/mjrice/PICA for schematics etc.
  28. *
  29. * Applies to PICA, PICA_REVB
  30. */
  31. #include "env_validate.h"
  32. #ifndef BOARD_INFO_NAME
  33. #define BOARD_INFO_NAME "PICA"
  34. #endif
  35. /*
  36. // Note that these are the "pins" that correspond to the analog inputs on the arduino mega.
  37. // These are not the same as the physical pin numbers
  38. AD0 = 54; AD1 = 55; AD2 = 56; AD3 = 57;
  39. AD4 = 58; AD5 = 59; AD6 = 60; AD7 = 61;
  40. AD8 = 62; AD9 = 63; AD10 = 64; AD11 = 65;
  41. AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69;
  42. */
  43. //
  44. // Servos
  45. //
  46. #define SERVO0_PIN 3
  47. #define SERVO1_PIN 4
  48. #define SERVO2_PIN 5
  49. //
  50. // Limit Switches
  51. //
  52. #define X_MIN_PIN 14
  53. #define X_MAX_PIN 15
  54. #define Y_MIN_PIN 16
  55. #define Y_MAX_PIN 17
  56. #define Z_MIN_PIN 23
  57. #define Z_MAX_PIN 22
  58. //
  59. // Steppers
  60. //
  61. #define X_STEP_PIN 55
  62. #define X_DIR_PIN 54
  63. #define X_ENABLE_PIN 60
  64. #define Y_STEP_PIN 57
  65. #define Y_DIR_PIN 56
  66. #define Y_ENABLE_PIN 61
  67. #define Z_STEP_PIN 59
  68. #define Z_DIR_PIN 58
  69. #define Z_ENABLE_PIN 62
  70. #define E0_STEP_PIN 67
  71. #define E0_DIR_PIN 24
  72. #define E0_ENABLE_PIN 26
  73. #define E1_STEP_PIN 68
  74. #define E1_DIR_PIN 28
  75. #define E1_ENABLE_PIN 27
  76. //
  77. // Temperature Sensors
  78. //
  79. #define TEMP_0_PIN 9 // Analog Input
  80. #define TEMP_1_PIN 10
  81. #define TEMP_BED_PIN 10
  82. #define TEMP_2_PIN 11
  83. #define TEMP_3_PIN 12
  84. //
  85. // Heaters / Fans
  86. //
  87. #ifndef HEATER_0_PIN
  88. #define HEATER_0_PIN 10 // E0
  89. #endif
  90. #ifndef HEATER_1_PIN
  91. #define HEATER_1_PIN 2 // E1
  92. #endif
  93. #define HEATER_BED_PIN 8 // HEAT-BED
  94. #ifndef FAN_PIN
  95. #define FAN_PIN 9
  96. #endif
  97. #ifndef FAN_2_PIN
  98. #define FAN_2_PIN 7
  99. #endif
  100. #define SDPOWER_PIN -1
  101. #define LED_PIN -1
  102. #define PS_ON_PIN -1
  103. #define KILL_PIN -1
  104. #define SSR_PIN 6
  105. // SPI for MAX Thermocouple
  106. #if DISABLED(SDSUPPORT)
  107. #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
  108. #else
  109. #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  110. #endif
  111. //
  112. // SD Support
  113. //
  114. #define SD_DETECT_PIN 49
  115. #define SDSS 53
  116. //
  117. // LCD / Controller
  118. //
  119. #define BEEPER_PIN 29
  120. #if HAS_WIRED_LCD
  121. #define LCD_PINS_RS 33
  122. #define LCD_PINS_ENABLE 30
  123. #define LCD_PINS_D4 35
  124. #define LCD_PINS_D5 32
  125. #define LCD_PINS_D6 37
  126. #define LCD_PINS_D7 36
  127. #define BTN_EN1 47
  128. #define BTN_EN2 48
  129. #define BTN_ENC 31
  130. #define LCD_SDSS 53
  131. #endif