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

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