My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_BTT_SKR.h 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. //
  58. // Heaters / Fans
  59. //
  60. #ifndef HEATER_0_PIN
  61. #define HEATER_0_PIN P2_07
  62. #endif
  63. #if HOTENDS == 1
  64. #ifndef FAN1_PIN
  65. #define FAN1_PIN P2_04
  66. #endif
  67. #else
  68. #ifndef HEATER_1_PIN
  69. #define HEATER_1_PIN P2_04
  70. #endif
  71. #endif
  72. #ifndef FAN_PIN
  73. #define FAN_PIN P2_03
  74. #endif
  75. #ifndef HEATER_BED_PIN
  76. #define HEATER_BED_PIN P2_05
  77. #endif
  78. //
  79. // LCD / Controller
  80. //
  81. #if HAS_SPI_LCD
  82. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  83. #endif
  84. //
  85. // SD Support
  86. //
  87. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  88. #if SD_CONNECTION_IS(LCD)
  89. #define SCK_PIN P0_15
  90. #define MISO_PIN P0_17
  91. #define MOSI_PIN P0_18
  92. #elif SD_CONNECTION_IS(ONBOARD)
  93. #undef SD_DETECT_PIN
  94. #define SD_DETECT_PIN P0_27
  95. #define SCK_PIN P0_07
  96. #define MISO_PIN P0_08
  97. #define MOSI_PIN P0_09
  98. #define SS_PIN ONBOARD_SD_CS_PIN
  99. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  100. #error "No custom SD drive cable defined for this board."
  101. #endif