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_common.h 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 <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. #if DISABLED(SDCARD_EEPROM_EMULATION)
  33. #define FLASH_EEPROM_EMULATION
  34. #endif
  35. //
  36. // Steppers
  37. //
  38. #ifndef E1_STEP_PIN
  39. #define E1_STEP_PIN P0_01
  40. #endif
  41. #ifndef E1_DIR_PIN
  42. #define E1_DIR_PIN P0_00
  43. #endif
  44. #ifndef E1_ENABLE_PIN
  45. #define E1_ENABLE_PIN P0_10
  46. #endif
  47. //
  48. // Temperature Sensors
  49. // 3.3V max when defined as an analog input
  50. //
  51. #ifndef TEMP_0_PIN
  52. #define TEMP_0_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_0_PIN
  53. #endif
  54. #ifndef TEMP_1_PIN
  55. #define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
  56. #endif
  57. #ifndef TEMP_BED_PIN
  58. #define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
  59. #endif
  60. #if HOTENDS == 1 && TEMP_SENSOR_PROBE
  61. #define TEMP_PROBE_PIN TEMP_1_PIN
  62. #endif
  63. //
  64. // Heaters / Fans
  65. //
  66. #ifndef HEATER_0_PIN
  67. #define HEATER_0_PIN P2_07
  68. #endif
  69. #if HOTENDS == 1
  70. #ifndef FAN1_PIN
  71. #define FAN1_PIN P2_04
  72. #endif
  73. #else
  74. #ifndef HEATER_1_PIN
  75. #define HEATER_1_PIN P2_04
  76. #endif
  77. #endif
  78. #ifndef FAN_PIN
  79. #define FAN_PIN P2_03
  80. #endif
  81. #ifndef HEATER_BED_PIN
  82. #define HEATER_BED_PIN P2_05
  83. #endif
  84. //
  85. // LCD / Controller
  86. //
  87. #if HAS_SPI_LCD
  88. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  89. #endif
  90. //
  91. // SD Support
  92. //
  93. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  94. #if SD_CONNECTION_IS(LCD)
  95. #define SCK_PIN P0_15
  96. #define MISO_PIN P0_17
  97. #define MOSI_PIN P0_18
  98. #elif SD_CONNECTION_IS(ONBOARD)
  99. #undef SD_DETECT_PIN
  100. #define SD_DETECT_PIN P0_27
  101. #define SCK_PIN P0_07
  102. #define MISO_PIN P0_08
  103. #define MOSI_PIN P0_09
  104. #define SS_PIN ONBOARD_SD_CS_PIN
  105. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  106. #error "No custom SD drive cable defined for this board."
  107. #endif