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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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. #ifdef SKR_HAS_LPC1769
  24. #ifndef MCU_LPC1769
  25. #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
  26. #endif
  27. #elif !defined(MCU_LPC1768)
  28. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  29. #endif
  30. // Ignore temp readings during development.
  31. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  32. //
  33. // Steppers
  34. //
  35. #ifndef E1_STEP_PIN
  36. #define E1_STEP_PIN P0_01
  37. #endif
  38. #ifndef E1_DIR_PIN
  39. #define E1_DIR_PIN P0_00
  40. #endif
  41. #ifndef E1_ENABLE_PIN
  42. #define E1_ENABLE_PIN P0_10
  43. #endif
  44. //
  45. // Temperature Sensors
  46. // 3.3V max when defined as an analog input
  47. //
  48. #ifndef TEMP_0_PIN
  49. #define TEMP_0_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_0_PIN
  50. #endif
  51. #ifndef TEMP_1_PIN
  52. #define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
  53. #endif
  54. #ifndef TEMP_BED_PIN
  55. #define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
  56. #endif
  57. #if HOTENDS == 1 && TEMP_SENSOR_PROBE
  58. #define TEMP_PROBE_PIN P0_25_A2 // TEMP_1_PIN
  59. #endif
  60. //
  61. // Heaters / Fans
  62. //
  63. #ifndef HEATER_0_PIN
  64. #define HEATER_0_PIN P2_07
  65. #endif
  66. #if HOTENDS == 1
  67. #ifndef FAN1_PIN
  68. #define FAN1_PIN P2_04
  69. #endif
  70. #else
  71. #ifndef HEATER_1_PIN
  72. #define HEATER_1_PIN P2_04
  73. #endif
  74. #endif
  75. #ifndef FAN_PIN
  76. #define FAN_PIN P2_03
  77. #endif
  78. #ifndef HEATER_BED_PIN
  79. #define HEATER_BED_PIN P2_05
  80. #endif
  81. //
  82. // LCD / Controller
  83. //
  84. #if HAS_SPI_LCD
  85. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  86. #endif
  87. //
  88. // SD Support
  89. //
  90. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  91. #if SD_CONNECTION_IS(LCD)
  92. #define SCK_PIN P0_15
  93. #define MISO_PIN P0_17
  94. #define MOSI_PIN P0_18
  95. #elif SD_CONNECTION_IS(ONBOARD)
  96. #undef SD_DETECT_PIN
  97. #define SD_DETECT_PIN P0_27
  98. #define SCK_PIN P0_07
  99. #define MISO_PIN P0_08
  100. #define MOSI_PIN P0_09
  101. #define SS_PIN ONBOARD_SD_CS_PIN
  102. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  103. #error "No custom SD drive cable defined for this board."
  104. #endif