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_MINI_E3_V2_0.h 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #define SKR_MINI_E3_V2
  24. #define BOARD_CUSTOM_BUILD_FLAGS -DTONE_CHANNEL=4 -DTONE_TIMER=4 -DTIMER_TONE=4
  25. // Onboard I2C EEPROM
  26. #if NO_EEPROM_SELECTED
  27. #define I2C_EEPROM
  28. #define SOFT_I2C_EEPROM
  29. #define MARLIN_EEPROM_SIZE 0x1000 // 4K
  30. #define I2C_SDA_PIN PB7
  31. #define I2C_SCL_PIN PB6
  32. #undef NO_EEPROM_SELECTED
  33. #endif
  34. #include "pins_BTT_SKR_MINI_E3_common.h"
  35. #ifndef BOARD_INFO_NAME
  36. #define BOARD_INFO_NAME "BTT SKR Mini E3 V2.0"
  37. #endif
  38. // Release PA13/PA14 (led, usb control) from SWD pins
  39. #define DISABLE_DEBUG
  40. #ifndef NEOPIXEL_PIN
  41. #define NEOPIXEL_PIN PA8 // LED driving pin
  42. #endif
  43. #ifndef PS_ON_PIN
  44. #define PS_ON_PIN PC13 // Power Supply Control
  45. #endif
  46. #define FAN1_PIN PC7
  47. #ifndef CONTROLLER_FAN_PIN
  48. #define CONTROLLER_FAN_PIN FAN1_PIN
  49. #endif
  50. #if HAS_TMC_UART
  51. /**
  52. * TMC220x stepper drivers
  53. * Hardware serial communication ports
  54. */
  55. #define X_HARDWARE_SERIAL MSerial4
  56. #define Y_HARDWARE_SERIAL MSerial4
  57. #define Z_HARDWARE_SERIAL MSerial4
  58. #define E0_HARDWARE_SERIAL MSerial4
  59. // Default TMC slave addresses
  60. #ifndef X_SLAVE_ADDRESS
  61. #define X_SLAVE_ADDRESS 0
  62. #endif
  63. #ifndef Y_SLAVE_ADDRESS
  64. #define Y_SLAVE_ADDRESS 2
  65. #endif
  66. #ifndef Z_SLAVE_ADDRESS
  67. #define Z_SLAVE_ADDRESS 1
  68. #endif
  69. #ifndef E0_SLAVE_ADDRESS
  70. #define E0_SLAVE_ADDRESS 3
  71. #endif
  72. #endif