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_RAMPS_LINUX.h 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  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. /**
  24. * Arduino Mega with RAMPS v1.4 (or v1.3) pin assignments
  25. *
  26. * Applies to the following boards:
  27. *
  28. * RAMPS_14_EFB (Hotend, Fan, Bed)
  29. * RAMPS_14_EEB (Hotend0, Hotend1, Bed)
  30. * RAMPS_14_EFF (Hotend, Fan0, Fan1)
  31. * RAMPS_14_EEF (Hotend0, Hotend1, Fan)
  32. * RAMPS_14_SF (Spindle, Controller Fan)
  33. *
  34. * RAMPS_13_EFB (Hotend, Fan, Bed)
  35. * RAMPS_13_EEB (Hotend0, Hotend1, Bed)
  36. * RAMPS_13_EFF (Hotend, Fan0, Fan1)
  37. * RAMPS_13_EEF (Hotend0, Hotend1, Fan)
  38. * RAMPS_13_SF (Spindle, Controller Fan)
  39. *
  40. * Other pins_MYBOARD.h files may override these defaults
  41. *
  42. * Differences between
  43. * RAMPS_13 | RAMPS_14
  44. * 7 | 11
  45. */
  46. #ifndef BOARD_INFO_NAME
  47. #define BOARD_INFO_NAME "RAMPS 1.4"
  48. #endif
  49. #ifndef DEFAULT_MACHINE_NAME
  50. #define DEFAULT_MACHINE_NAME "SimRap 1.4"
  51. #endif
  52. #ifndef MARLIN_EEPROM_SIZE
  53. #define MARLIN_EEPROM_SIZE 0x1000 // 4KB
  54. #endif
  55. #define IS_RAMPS_EFB
  56. //
  57. // Servos
  58. //
  59. #ifdef IS_RAMPS_13
  60. #define SERVO0_PIN 7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
  61. #else
  62. #define SERVO0_PIN 11
  63. #endif
  64. #define SERVO1_PIN 6
  65. #define SERVO2_PIN 5
  66. #ifndef SERVO3_PIN
  67. #define SERVO3_PIN 4
  68. #endif
  69. //
  70. // Limit Switches
  71. //
  72. #define X_MIN_PIN 3
  73. #ifndef X_MAX_PIN
  74. #define X_MAX_PIN 2
  75. #endif
  76. #define Y_MIN_PIN 14
  77. #define Y_MAX_PIN 15
  78. #define Z_MIN_PIN 18
  79. #define Z_MAX_PIN 19
  80. //
  81. // Z Probe (when not Z_MIN_PIN)
  82. //
  83. #ifndef Z_MIN_PROBE_PIN
  84. #define Z_MIN_PROBE_PIN 32
  85. #endif
  86. //
  87. // Steppers
  88. //
  89. #define X_STEP_PIN 54
  90. #define X_DIR_PIN 55
  91. #define X_ENABLE_PIN 38
  92. #ifndef X_CS_PIN
  93. #define X_CS_PIN 53
  94. #endif
  95. #define Y_STEP_PIN 60
  96. #define Y_DIR_PIN 61
  97. #define Y_ENABLE_PIN 56
  98. #ifndef Y_CS_PIN
  99. #define Y_CS_PIN 49
  100. #endif
  101. #define Z_STEP_PIN 46
  102. #define Z_DIR_PIN 48
  103. #define Z_ENABLE_PIN 62
  104. #ifndef Z_CS_PIN
  105. #define Z_CS_PIN 40
  106. #endif
  107. #define E0_STEP_PIN 26
  108. #define E0_DIR_PIN 28
  109. #define E0_ENABLE_PIN 24
  110. #ifndef E0_CS_PIN
  111. #define E0_CS_PIN 42
  112. #endif
  113. #define E1_STEP_PIN 36
  114. #define E1_DIR_PIN 34
  115. #define E1_ENABLE_PIN 30
  116. #ifndef E1_CS_PIN
  117. #define E1_CS_PIN 44
  118. #endif
  119. //
  120. // Temperature Sensors
  121. //
  122. #define TEMP_0_PIN 0 // Analog Input
  123. #define TEMP_1_PIN 1 // Analog Input
  124. #define TEMP_BED_PIN 2 // Analog Input
  125. // SPI for MAX Thermocouple
  126. #if DISABLED(SDSUPPORT)
  127. #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
  128. #else
  129. #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  130. #endif
  131. //
  132. // Augmentation for auto-assigning RAMPS plugs
  133. //
  134. #if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
  135. #if HAS_MULTI_HOTEND
  136. #if TEMP_SENSOR_BED
  137. #define IS_RAMPS_EEB
  138. #else
  139. #define IS_RAMPS_EEF
  140. #endif
  141. #elif TEMP_SENSOR_BED
  142. #define IS_RAMPS_EFB
  143. #else
  144. #define IS_RAMPS_EFF
  145. #endif
  146. #endif
  147. //
  148. // Heaters / Fans
  149. //
  150. #ifndef MOSFET_D_PIN
  151. #define MOSFET_D_PIN -1
  152. #endif
  153. #ifndef RAMPS_D8_PIN
  154. #define RAMPS_D8_PIN 8
  155. #endif
  156. #ifndef RAMPS_D9_PIN
  157. #define RAMPS_D9_PIN 9
  158. #endif
  159. #ifndef RAMPS_D10_PIN
  160. #define RAMPS_D10_PIN 10
  161. #endif
  162. #define HEATER_0_PIN RAMPS_D10_PIN
  163. #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
  164. #define FAN_PIN RAMPS_D9_PIN
  165. #define HEATER_BED_PIN RAMPS_D8_PIN
  166. #elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
  167. #define HEATER_1_PIN RAMPS_D9_PIN
  168. #define FAN_PIN RAMPS_D8_PIN
  169. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  170. #define HEATER_1_PIN RAMPS_D9_PIN
  171. #define HEATER_BED_PIN RAMPS_D8_PIN
  172. #elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
  173. #define FAN_PIN RAMPS_D9_PIN
  174. #define FAN1_PIN RAMPS_D8_PIN
  175. #elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
  176. #define FAN_PIN RAMPS_D8_PIN
  177. #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
  178. #define FAN_PIN RAMPS_D9_PIN
  179. #define HEATER_BED_PIN RAMPS_D8_PIN
  180. #if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
  181. #define FAN1_PIN MOSFET_D_PIN
  182. #else
  183. #define HEATER_1_PIN MOSFET_D_PIN
  184. #endif
  185. #endif
  186. #ifndef FAN_PIN
  187. #define FAN_PIN 4 // IO pin. Buffer needed
  188. #endif
  189. //
  190. // Misc. Functions
  191. //
  192. #define SDSS 53
  193. #define LED_PIN 13
  194. #define NEOPIXEL_PIN 71
  195. #ifndef FILWIDTH_PIN
  196. #define FILWIDTH_PIN 5 // Analog Input on AUX2
  197. #endif
  198. // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
  199. #ifndef FIL_RUNOUT_PIN
  200. #define FIL_RUNOUT_PIN 21
  201. #endif
  202. #ifndef PS_ON_PIN
  203. #define PS_ON_PIN 12
  204. #endif
  205. #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
  206. #if NUM_SERVOS <= 1 // Prefer the servo connector
  207. #define CASE_LIGHT_PIN 6 // Hardware PWM
  208. #elif HAS_FREE_AUX2_PINS // try to use AUX 2
  209. #define CASE_LIGHT_PIN 44 // Hardware PWM
  210. #endif
  211. #endif
  212. //
  213. // M3/M4/M5 - Spindle/Laser Control
  214. //
  215. #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  216. #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
  217. #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
  218. #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
  219. #define SPINDLE_DIR_PIN 5
  220. #elif HAS_FREE_AUX2_PINS // try to use AUX 2
  221. #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
  222. #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
  223. #define SPINDLE_DIR_PIN 65
  224. #endif
  225. #endif
  226. //
  227. // Průša i3 MK2 Multiplexer Support
  228. //
  229. #ifndef E_MUX0_PIN
  230. #define E_MUX0_PIN 40 // Z_CS_PIN
  231. #endif
  232. #ifndef E_MUX1_PIN
  233. #define E_MUX1_PIN 42 // E0_CS_PIN
  234. #endif
  235. #ifndef E_MUX2_PIN
  236. #define E_MUX2_PIN 44 // E1_CS_PIN
  237. #endif
  238. /**
  239. * Default pins for TMC software SPI
  240. */
  241. #if ENABLED(TMC_USE_SW_SPI)
  242. #ifndef TMC_SW_MOSI
  243. #define TMC_SW_MOSI 66
  244. #endif
  245. #ifndef TMC_SW_MISO
  246. #define TMC_SW_MISO 44
  247. #endif
  248. #ifndef TMC_SW_SCK
  249. #define TMC_SW_SCK 64
  250. #endif
  251. #endif
  252. #if HAS_TMC_UART
  253. /**
  254. * TMC2208/TMC2209 stepper drivers
  255. *
  256. * Hardware serial communication ports.
  257. * If undefined software serial is used according to the pins below
  258. */
  259. //#define X_HARDWARE_SERIAL Serial1
  260. //#define X2_HARDWARE_SERIAL Serial1
  261. //#define Y_HARDWARE_SERIAL Serial1
  262. //#define Y2_HARDWARE_SERIAL Serial1
  263. //#define Z_HARDWARE_SERIAL Serial1
  264. //#define Z2_HARDWARE_SERIAL Serial1
  265. //#define E0_HARDWARE_SERIAL Serial1
  266. //#define E1_HARDWARE_SERIAL Serial1
  267. //#define E2_HARDWARE_SERIAL Serial1
  268. //#define E3_HARDWARE_SERIAL Serial1
  269. //#define E4_HARDWARE_SERIAL Serial1
  270. /**
  271. * Software serial
  272. */
  273. #ifndef X_SERIAL_TX_PIN
  274. #define X_SERIAL_TX_PIN 40
  275. #endif
  276. #ifndef X_SERIAL_RX_PIN
  277. #define X_SERIAL_RX_PIN 63
  278. #endif
  279. #ifndef X2_SERIAL_TX_PIN
  280. #define X2_SERIAL_TX_PIN -1
  281. #endif
  282. #ifndef X2_SERIAL_RX_PIN
  283. #define X2_SERIAL_RX_PIN -1
  284. #endif
  285. #ifndef Y_SERIAL_TX_PIN
  286. #define Y_SERIAL_TX_PIN 59
  287. #endif
  288. #ifndef Y_SERIAL_RX_PIN
  289. #define Y_SERIAL_RX_PIN 64
  290. #endif
  291. #ifndef Y2_SERIAL_TX_PIN
  292. #define Y2_SERIAL_TX_PIN -1
  293. #endif
  294. #ifndef Y2_SERIAL_RX_PIN
  295. #define Y2_SERIAL_RX_PIN -1
  296. #endif
  297. #ifndef Z_SERIAL_TX_PIN
  298. #define Z_SERIAL_TX_PIN 42
  299. #endif
  300. #ifndef Z_SERIAL_RX_PIN
  301. #define Z_SERIAL_RX_PIN 65
  302. #endif
  303. #ifndef Z2_SERIAL_TX_PIN
  304. #define Z2_SERIAL_TX_PIN -1
  305. #endif
  306. #ifndef Z2_SERIAL_RX_PIN
  307. #define Z2_SERIAL_RX_PIN -1
  308. #endif
  309. #ifndef E0_SERIAL_TX_PIN
  310. #define E0_SERIAL_TX_PIN 44
  311. #endif
  312. #ifndef E0_SERIAL_RX_PIN
  313. #define E0_SERIAL_RX_PIN 66
  314. #endif
  315. #ifndef E1_SERIAL_TX_PIN
  316. #define E1_SERIAL_TX_PIN -1
  317. #endif
  318. #ifndef E1_SERIAL_RX_PIN
  319. #define E1_SERIAL_RX_PIN -1
  320. #endif
  321. #ifndef E2_SERIAL_TX_PIN
  322. #define E2_SERIAL_TX_PIN -1
  323. #endif
  324. #ifndef E2_SERIAL_RX_PIN
  325. #define E2_SERIAL_RX_PIN -1
  326. #endif
  327. #ifndef E3_SERIAL_TX_PIN
  328. #define E3_SERIAL_TX_PIN -1
  329. #endif
  330. #ifndef E3_SERIAL_RX_PIN
  331. #define E3_SERIAL_RX_PIN -1
  332. #endif
  333. #ifndef E4_SERIAL_TX_PIN
  334. #define E4_SERIAL_TX_PIN -1
  335. #endif
  336. #ifndef E4_SERIAL_RX_PIN
  337. #define E4_SERIAL_RX_PIN -1
  338. #endif
  339. #ifndef E5_SERIAL_TX_PIN
  340. #define E5_SERIAL_TX_PIN -1
  341. #endif
  342. #ifndef E5_SERIAL_RX_PIN
  343. #define E5_SERIAL_RX_PIN -1
  344. #endif
  345. #ifndef E6_SERIAL_TX_PIN
  346. #define E6_SERIAL_TX_PIN -1
  347. #endif
  348. #ifndef E6_SERIAL_RX_PIN
  349. #define E6_SERIAL_RX_PIN -1
  350. #endif
  351. #ifndef E7_SERIAL_TX_PIN
  352. #define E7_SERIAL_TX_PIN -1
  353. #endif
  354. #ifndef E7_SERIAL_RX_PIN
  355. #define E7_SERIAL_RX_PIN -1
  356. #endif
  357. #endif
  358. //////////////////////////
  359. // LCDs and Controllers //
  360. //////////////////////////
  361. #if ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
  362. #define TFT_A0_PIN 43
  363. #define TFT_CS_PIN 49
  364. #define TFT_DC_PIN 43
  365. #define TFT_SCK_PIN SD_SCK_PIN
  366. #define TFT_MOSI_PIN SD_MOSI_PIN
  367. #define TFT_MISO_PIN SD_MISO_PIN
  368. #define LCD_USE_DMA_SPI
  369. #define BTN_EN1 40
  370. #define BTN_EN2 63
  371. #define BTN_ENC 59
  372. #define BEEPER_PIN 42
  373. #define TOUCH_CS_PIN 33
  374. #define SD_DETECT_PIN 41
  375. #define HAS_SPI_FLASH 1
  376. #if HAS_SPI_FLASH
  377. #define SPI_DEVICE 1
  378. #define SPI_FLASH_SIZE 0x1000000 // 16MB
  379. #define W25QXX_CS_PIN 31
  380. #define W25QXX_MOSI_PIN SD_MOSI_PIN
  381. #define W25QXX_MISO_PIN SD_MISO_PIN
  382. #define W25QXX_SCK_PIN SD_SCK_PIN
  383. #endif
  384. #define TFT_BUFFER_SIZE 0xFFFF
  385. #ifndef TFT_DRIVER
  386. #define TFT_DRIVER ST7796
  387. #endif
  388. #ifndef XPT2046_X_CALIBRATION
  389. #define XPT2046_X_CALIBRATION 63934
  390. #endif
  391. #ifndef XPT2046_Y_CALIBRATION
  392. #define XPT2046_Y_CALIBRATION 63598
  393. #endif
  394. #ifndef XPT2046_X_OFFSET
  395. #define XPT2046_X_OFFSET -1
  396. #endif
  397. #ifndef XPT2046_Y_OFFSET
  398. #define XPT2046_Y_OFFSET -20
  399. #endif
  400. #define BTN_BACK 70
  401. #elif HAS_WIRED_LCD
  402. //
  403. // LCD Display output pins
  404. //
  405. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  406. #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
  407. #define LCD_PINS_ENABLE 51 // SID (MOSI)
  408. #define LCD_PINS_D4 52 // SCK (CLK) clock
  409. #elif BOTH(IS_NEWPANEL, PANEL_ONE)
  410. #define LCD_PINS_RS 40
  411. #define LCD_PINS_ENABLE 42
  412. #define LCD_PINS_D4 65
  413. #define LCD_PINS_D5 66
  414. #define LCD_PINS_D6 44
  415. #define LCD_PINS_D7 64
  416. #else
  417. #if ENABLED(CR10_STOCKDISPLAY)
  418. #define LCD_PINS_RS 27
  419. #define LCD_PINS_ENABLE 29
  420. #define LCD_PINS_D4 25
  421. #if !IS_NEWPANEL
  422. #define BEEPER_PIN 37
  423. #endif
  424. #elif ENABLED(ZONESTAR_LCD)
  425. #define LCD_PINS_RS 64
  426. #define LCD_PINS_ENABLE 44
  427. #define LCD_PINS_D4 63
  428. #define LCD_PINS_D5 40
  429. #define LCD_PINS_D6 42
  430. #define LCD_PINS_D7 65
  431. #else
  432. #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
  433. #define LCD_PINS_DC 25 // Set as output on init
  434. #define LCD_PINS_RS 27 // Pull low for 1s to init
  435. // DOGM SPI LCD Support
  436. #define DOGLCD_CS 16
  437. #define DOGLCD_MOSI 17
  438. #define DOGLCD_SCK 23
  439. #define DOGLCD_A0 LCD_PINS_DC
  440. #else
  441. #define LCD_PINS_RS 16
  442. #define LCD_PINS_ENABLE 17
  443. #define LCD_PINS_D4 23
  444. #define LCD_PINS_D5 25
  445. #define LCD_PINS_D6 27
  446. #endif
  447. #define LCD_PINS_D7 29
  448. #if !IS_NEWPANEL
  449. #define BEEPER_PIN 33
  450. #endif
  451. #endif
  452. #if !IS_NEWPANEL
  453. // Buttons attached to a shift register
  454. // Not wired yet
  455. //#define SHIFT_CLK_PIN 38
  456. //#define SHIFT_LD_PIN 42
  457. //#define SHIFT_OUT_PIN 40
  458. //#define SHIFT_EN_PIN 17
  459. #endif
  460. #endif
  461. //
  462. // LCD Display input pins
  463. //
  464. #if IS_NEWPANEL
  465. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  466. #define BEEPER_PIN 37
  467. #if ENABLED(CR10_STOCKDISPLAY)
  468. #define BTN_EN1 17
  469. #define BTN_EN2 23
  470. #else
  471. #define BTN_EN1 31
  472. #define BTN_EN2 33
  473. #endif
  474. #define BTN_ENC 35
  475. #define SD_DETECT_PIN 49
  476. #define KILL_PIN 41
  477. #if ENABLED(BQ_LCD_SMART_CONTROLLER)
  478. #define LCD_BACKLIGHT_PIN 39
  479. #endif
  480. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  481. #define BTN_EN1 64
  482. #define BTN_EN2 59
  483. #define BTN_ENC 63
  484. #define SD_DETECT_PIN 42
  485. #elif ENABLED(LCD_I2C_PANELOLU2)
  486. #define BTN_EN1 47
  487. #define BTN_EN2 43
  488. #define BTN_ENC 32
  489. #define LCD_SDSS SDSS
  490. #define KILL_PIN 41
  491. #elif ENABLED(LCD_I2C_VIKI)
  492. #define BTN_EN1 22 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
  493. #define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
  494. #define BTN_ENC -1
  495. #define LCD_SDSS SDSS
  496. #define SD_DETECT_PIN 49
  497. #elif ANY(VIKI2, miniVIKI)
  498. #define DOGLCD_CS 45
  499. #define DOGLCD_A0 44
  500. #define LCD_SCREEN_ROT_180
  501. #define BEEPER_PIN 33
  502. #define STAT_LED_RED_PIN 32
  503. #define STAT_LED_BLUE_PIN 35
  504. #define BTN_EN1 22
  505. #define BTN_EN2 7
  506. #define BTN_ENC 39
  507. #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
  508. #define KILL_PIN 31
  509. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  510. #define DOGLCD_CS 29
  511. #define DOGLCD_A0 27
  512. #define BEEPER_PIN 23
  513. #define LCD_BACKLIGHT_PIN 33
  514. #define BTN_EN1 35
  515. #define BTN_EN2 37
  516. #define BTN_ENC 31
  517. #define LCD_SDSS SDSS
  518. #define SD_DETECT_PIN 49
  519. #define KILL_PIN 41
  520. #elif ENABLED(MKS_MINI_12864)
  521. #define DOGLCD_A0 27
  522. #define DOGLCD_CS 25
  523. // GLCD features
  524. // Uncomment screen orientation
  525. //#define LCD_SCREEN_ROT_90
  526. //#define LCD_SCREEN_ROT_180
  527. //#define LCD_SCREEN_ROT_270
  528. #define BEEPER_PIN 37
  529. // not connected to a pin
  530. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  531. #define BTN_EN1 31
  532. #define BTN_EN2 33
  533. #define BTN_ENC 35
  534. #define SD_DETECT_PIN 49
  535. #define KILL_PIN 64
  536. #elif ENABLED(MINIPANEL)
  537. #define BEEPER_PIN 42
  538. // not connected to a pin
  539. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  540. #define DOGLCD_A0 44
  541. #define DOGLCD_CS 66
  542. // GLCD features
  543. // Uncomment screen orientation
  544. //#define LCD_SCREEN_ROT_90
  545. //#define LCD_SCREEN_ROT_180
  546. //#define LCD_SCREEN_ROT_270
  547. #define BTN_EN1 40
  548. #define BTN_EN2 63
  549. #define BTN_ENC 59
  550. #define SD_DETECT_PIN 49
  551. #define KILL_PIN 64
  552. #elif ENABLED(ZONESTAR_LCD)
  553. #define ADC_KEYPAD_PIN 12
  554. #elif ENABLED(AZSMZ_12864)
  555. // Pins only defined for RAMPS_SMART currently
  556. #else
  557. // Beeper on AUX-4
  558. #define BEEPER_PIN 33
  559. // Buttons are directly attached to AUX-2
  560. #if IS_RRW_KEYPAD
  561. #define SHIFT_OUT_PIN 40
  562. #define SHIFT_CLK_PIN 44
  563. #define SHIFT_LD_PIN 42
  564. #define BTN_EN1 64
  565. #define BTN_EN2 59
  566. #define BTN_ENC 63
  567. #elif ENABLED(PANEL_ONE)
  568. #define BTN_EN1 59 // AUX2 PIN 3
  569. #define BTN_EN2 63 // AUX2 PIN 4
  570. #define BTN_ENC 49 // AUX3 PIN 7
  571. #else
  572. #define BTN_EN1 37
  573. #define BTN_EN2 35
  574. #define BTN_ENC 31
  575. #define SD_DETECT_PIN 41
  576. #endif
  577. #if ENABLED(G3D_PANEL)
  578. #define SD_DETECT_PIN 49
  579. #define KILL_PIN 41
  580. #endif
  581. #endif
  582. // CUSTOM SIMULATOR INPUTS
  583. #define BTN_BACK 70
  584. #endif // IS_NEWPANEL
  585. #endif // HAS_WIRED_LCD