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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. #ifndef __STM32F1__
  23. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  24. #endif
  25. #define DEFAULT_MACHINE_NAME "3D Printer"
  26. #define BOARD_NAME "FYSETC CHEETAH"
  27. #define BOARD_WEBSITE_URL "https://fysetc.com"
  28. // Ignore temp readings during develpment.
  29. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  30. //
  31. // Servos
  32. //
  33. #define SERVO0_PIN PA0
  34. //
  35. // Limit Switches
  36. //
  37. #define X_STOP_PIN PA1
  38. #define Y_STOP_PIN PB4
  39. #define Z_STOP_PIN PA15
  40. //
  41. // Filament runout
  42. //
  43. #define FIL_RUNOUT_PIN PB5
  44. //
  45. // Steppers
  46. //
  47. #define X_STEP_PIN PB8
  48. #define X_DIR_PIN PB9
  49. #define X_ENABLE_PIN PA8
  50. #define Y_STEP_PIN PB2
  51. #define Y_DIR_PIN PB3
  52. #define Y_ENABLE_PIN PB1
  53. #define Z_STEP_PIN PC0
  54. #define Z_DIR_PIN PC1
  55. #define Z_ENABLE_PIN PC2
  56. #define E0_STEP_PIN PC15
  57. #define E0_DIR_PIN PC14
  58. #define E0_ENABLE_PIN PC13
  59. #define X_HARDWARE_SERIAL MSerial2 // Port correct?
  60. #define Y_HARDWARE_SERIAL MSerial2
  61. #define Z_HARDWARE_SERIAL MSerial2
  62. #define E0_HARDWARE_SERIAL MSerial2
  63. //
  64. // Heaters / Fans
  65. //
  66. #define HEATER_0_PIN PC6
  67. #define HEATER_BED_PIN PC7
  68. #ifndef FAN_PIN
  69. #define FAN_PIN PC8
  70. #endif
  71. //
  72. // Temperature Sensors
  73. //
  74. #define TEMP_BED_PIN PC5 // Analog Input
  75. #define TEMP_0_PIN PC4 // Analog Input
  76. //
  77. // Misc. Functions
  78. //
  79. #define SDSS PA4
  80. //
  81. // LCD Pins
  82. //
  83. #if HAS_SPI_LCD
  84. #define BEEPER_PIN PC9
  85. #if HAS_GRAPHICAL_LCD
  86. #define DOGLCD_A0 PB14
  87. #define DOGLCD_CS PB12
  88. #define DOGLCD_SCK PB13
  89. #define DOGLCD_MOSI PB15
  90. //#define LCD_SCREEN_ROT_90
  91. //#define LCD_SCREEN_ROT_180
  92. //#define LCD_SCREEN_ROT_270
  93. #if ENABLED(FYSETC_MINI_12864) || ENABLED(U8GLIB_ST7920)
  94. #define FORCE_SOFT_SPI
  95. #endif
  96. #endif
  97. #define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
  98. #define LCD_PINS_D4 PB13 // SCLK
  99. #define LCD_PINS_ENABLE PB15 // DATA MOSI
  100. // not connected to a pin
  101. #define SD_DETECT_PIN PC3
  102. #ifndef RGB_LED_R_PIN
  103. #define RGB_LED_R_PIN PB0
  104. #endif
  105. #ifndef RGB_LED_G_PIN
  106. #define RGB_LED_G_PIN PB7
  107. #endif
  108. #ifndef RGB_LED_B_PIN
  109. #define RGB_LED_B_PIN PB6
  110. #endif
  111. //#define LCD_CONTRAST 190
  112. #if ENABLED(NEWPANEL)
  113. #define BTN_EN1 PC11
  114. #define BTN_EN2 PC10
  115. #define BTN_ENC PC12
  116. #endif
  117. #endif