pins_RAMPS.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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. /**
  23. * Arduino Mega with RAMPS v1.4 (or v1.3) pin assignments
  24. *
  25. * Applies to the following boards:
  26. *
  27. * RAMPS_14_EFB (Hotend, Fan, Bed)
  28. * RAMPS_14_EEB (Hotend0, Hotend1, Bed)
  29. * RAMPS_14_EFF (Hotend, Fan0, Fan1)
  30. * RAMPS_14_EEF (Hotend0, Hotend1, Fan)
  31. * RAMPS_14_SF (Spindle, Controller Fan)
  32. *
  33. * RAMPS_13_EFB (Hotend, Fan, Bed)
  34. * RAMPS_13_EEB (Hotend0, Hotend1, Bed)
  35. * RAMPS_13_EFF (Hotend, Fan0, Fan1)
  36. * RAMPS_13_EEF (Hotend0, Hotend1, Fan)
  37. * RAMPS_13_SF (Spindle, Controller Fan)
  38. *
  39. * Other pins_MYBOARD.h files may override these defaults
  40. *
  41. * Differences between
  42. * RAMPS_13 | RAMPS_14
  43. * 7 | 11
  44. */
  45. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  46. #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  47. #endif
  48. #ifndef BOARD_NAME
  49. #define BOARD_NAME "RAMPS 1.4"
  50. #endif
  51. //
  52. // Servos
  53. //
  54. #ifdef IS_RAMPS_13
  55. #define SERVO0_PIN 7 // RAMPS_13
  56. #else
  57. #define SERVO0_PIN 11
  58. #endif
  59. #ifndef SERVO1_PIN
  60. #define SERVO1_PIN 6
  61. #endif
  62. #ifndef SERVO2_PIN
  63. #define SERVO2_PIN 5
  64. #endif
  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. * Default pins for TMC software SPI
  120. */
  121. #if ENABLED(TMC_USE_SW_SPI)
  122. #ifndef TMC_SW_MOSI
  123. #define TMC_SW_MOSI 66
  124. #endif
  125. #ifndef TMC_SW_MISO
  126. #define TMC_SW_MISO 44
  127. #endif
  128. #ifndef TMC_SW_SCK
  129. #define TMC_SW_SCK 64
  130. #endif
  131. #endif
  132. #if HAS_DRIVER(TMC2208)
  133. /**
  134. * TMC2208 stepper drivers
  135. *
  136. * Hardware serial communication ports.
  137. * If undefined software serial is used according to the pins below
  138. */
  139. //#define X_HARDWARE_SERIAL Serial1
  140. //#define X2_HARDWARE_SERIAL Serial1
  141. //#define Y_HARDWARE_SERIAL Serial1
  142. //#define Y2_HARDWARE_SERIAL Serial1
  143. //#define Z_HARDWARE_SERIAL Serial1
  144. //#define Z2_HARDWARE_SERIAL Serial1
  145. //#define E0_HARDWARE_SERIAL Serial1
  146. //#define E1_HARDWARE_SERIAL Serial1
  147. //#define E2_HARDWARE_SERIAL Serial1
  148. //#define E3_HARDWARE_SERIAL Serial1
  149. //#define E4_HARDWARE_SERIAL Serial1
  150. /**
  151. * Software serial
  152. */
  153. #ifndef X_SERIAL_TX_PIN
  154. #define X_SERIAL_TX_PIN 40
  155. #endif
  156. #ifndef X_SERIAL_RX_PIN
  157. #define X_SERIAL_RX_PIN 63
  158. #endif
  159. #ifndef X2_SERIAL_TX_PIN
  160. #define X2_SERIAL_TX_PIN -1
  161. #endif
  162. #ifndef X2_SERIAL_RX_PIN
  163. #define X2_SERIAL_RX_PIN -1
  164. #endif
  165. #ifndef Y_SERIAL_TX_PIN
  166. #define Y_SERIAL_TX_PIN 59
  167. #endif
  168. #ifndef Y_SERIAL_RX_PIN
  169. #define Y_SERIAL_RX_PIN 64
  170. #endif
  171. #ifndef Y2_SERIAL_TX_PIN
  172. #define Y2_SERIAL_TX_PIN -1
  173. #endif
  174. #ifndef Y2_SERIAL_RX_PIN
  175. #define Y2_SERIAL_RX_PIN -1
  176. #endif
  177. #ifndef Z_SERIAL_TX_PIN
  178. #define Z_SERIAL_TX_PIN 42
  179. #endif
  180. #ifndef Z_SERIAL_RX_PIN
  181. #define Z_SERIAL_RX_PIN 65
  182. #endif
  183. #ifndef Z2_SERIAL_TX_PIN
  184. #define Z2_SERIAL_TX_PIN -1
  185. #endif
  186. #ifndef Z2_SERIAL_RX_PIN
  187. #define Z2_SERIAL_RX_PIN -1
  188. #endif
  189. #ifndef E0_SERIAL_TX_PIN
  190. #define E0_SERIAL_TX_PIN 44
  191. #endif
  192. #ifndef E0_SERIAL_RX_PIN
  193. #define E0_SERIAL_RX_PIN 66
  194. #endif
  195. #ifndef E1_SERIAL_TX_PIN
  196. #define E1_SERIAL_TX_PIN -1
  197. #endif
  198. #ifndef E1_SERIAL_RX_PIN
  199. #define E1_SERIAL_RX_PIN -1
  200. #endif
  201. #ifndef E2_SERIAL_TX_PIN
  202. #define E2_SERIAL_TX_PIN -1
  203. #endif
  204. #ifndef E2_SERIAL_RX_PIN
  205. #define E2_SERIAL_RX_PIN -1
  206. #endif
  207. #ifndef E3_SERIAL_TX_PIN
  208. #define E3_SERIAL_TX_PIN -1
  209. #endif
  210. #ifndef E3_SERIAL_RX_PIN
  211. #define E3_SERIAL_RX_PIN -1
  212. #endif
  213. #ifndef E4_SERIAL_TX_PIN
  214. #define E4_SERIAL_TX_PIN -1
  215. #endif
  216. #ifndef E4_SERIAL_RX_PIN
  217. #define E4_SERIAL_RX_PIN -1
  218. #endif
  219. #endif
  220. //
  221. // Temperature Sensors
  222. //
  223. #define TEMP_0_PIN 13 // Analog Input
  224. #define TEMP_1_PIN 15 // Analog Input
  225. #define TEMP_BED_PIN 14 // Analog Input
  226. // SPI for Max6675 or Max31855 Thermocouple
  227. #if DISABLED(SDSUPPORT)
  228. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  229. #else
  230. #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  231. #endif
  232. //
  233. // Augmentation for auto-assigning RAMPS plugs
  234. //
  235. #if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
  236. #if HOTENDS > 1
  237. #if TEMP_SENSOR_BED
  238. #define IS_RAMPS_EEB
  239. #else
  240. #define IS_RAMPS_EEF
  241. #endif
  242. #elif TEMP_SENSOR_BED
  243. #define IS_RAMPS_EFB
  244. #else
  245. #define IS_RAMPS_EFF
  246. #endif
  247. #endif
  248. //
  249. // Heaters / Fans
  250. //
  251. #ifndef MOSFET_D_PIN
  252. #define MOSFET_D_PIN -1
  253. #endif
  254. #ifndef RAMPS_D8_PIN
  255. #define RAMPS_D8_PIN 8
  256. #endif
  257. #ifndef RAMPS_D9_PIN
  258. #define RAMPS_D9_PIN 9
  259. #endif
  260. #ifndef RAMPS_D10_PIN
  261. #define RAMPS_D10_PIN 10
  262. #endif
  263. #define HEATER_0_PIN RAMPS_D10_PIN
  264. #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
  265. #define HEATER_BED_PIN RAMPS_D8_PIN
  266. #elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
  267. #define HEATER_1_PIN RAMPS_D9_PIN
  268. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  269. #define HEATER_1_PIN RAMPS_D9_PIN
  270. #define HEATER_BED_PIN RAMPS_D8_PIN
  271. #elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
  272. #define FAN1_PIN RAMPS_D8_PIN
  273. #elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
  274. #define HEATER_BED_PIN RAMPS_D8_PIN
  275. #if HOTENDS == 1
  276. #define FAN1_PIN MOSFET_D_PIN
  277. #else
  278. #define HEATER_1_PIN MOSFET_D_PIN
  279. #endif
  280. #endif
  281. #ifndef FAN_PIN
  282. #if ENABLED(IS_RAMPS_EFB) || ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
  283. #define FAN_PIN RAMPS_D9_PIN
  284. #elif ENABLED(IS_RAMPS_EEF) || ENABLED(IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
  285. #define FAN_PIN RAMPS_D8_PIN
  286. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  287. #define FAN_PIN 4 // IO pin. Buffer needed
  288. #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
  289. #define FAN_PIN RAMPS_D9_PIN
  290. #endif
  291. #endif
  292. //
  293. // Misc. Functions
  294. //
  295. #define SDSS 53
  296. #define LED_PIN 13
  297. #ifndef FILWIDTH_PIN
  298. #define FILWIDTH_PIN 5 // Analog Input on AUX2
  299. #endif
  300. // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
  301. #ifndef FIL_RUNOUT_PIN
  302. #define FIL_RUNOUT_PIN 4
  303. #endif
  304. #ifndef PS_ON_PIN
  305. #define PS_ON_PIN 12
  306. #endif
  307. #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENABLE_PIN)
  308. #if NUM_SERVOS <= 1 // try to use servo connector first
  309. #define CASE_LIGHT_PIN 6 // MUST BE HARDWARE PWM
  310. #elif !(ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL) \
  311. && (ENABLED(PANEL_ONE) || ENABLED(VIKI2) || ENABLED(miniVIKI) || ENABLED(MINIPANEL) || ENABLED(REPRAPWORLD_KEYPAD))) // try to use AUX 2
  312. #define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
  313. #endif
  314. #endif
  315. //
  316. // M3/M4/M5 - Spindle/Laser Control
  317. //
  318. #if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
  319. #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first
  320. #define SPINDLE_LASER_ENABLE_PIN 4 // Pin should have a pullup/pulldown!
  321. #define SPINDLE_LASER_PWM_PIN 6 // MUST BE HARDWARE PWM
  322. #define SPINDLE_DIR_PIN 5
  323. #elif !(ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL) \
  324. && (ENABLED(PANEL_ONE) || ENABLED(VIKI2) || ENABLED(miniVIKI) || ENABLED(MINIPANEL) || ENABLED(REPRAPWORLD_KEYPAD))) // try to use AUX 2
  325. #define SPINDLE_LASER_ENABLE_PIN 40 // Pin should have a pullup/pulldown!
  326. #define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
  327. #define SPINDLE_DIR_PIN 65
  328. #endif
  329. #endif
  330. //
  331. // Průša i3 MK2 Multiplexer Support
  332. //
  333. #ifndef E_MUX0_PIN
  334. #define E_MUX0_PIN 40 // Z_CS_PIN
  335. #endif
  336. #ifndef E_MUX1_PIN
  337. #define E_MUX1_PIN 42 // E0_CS_PIN
  338. #endif
  339. #ifndef E_MUX2_PIN
  340. #define E_MUX2_PIN 44 // E1_CS_PIN
  341. #endif
  342. //////////////////////////
  343. // LCDs and Controllers //
  344. //////////////////////////
  345. #if ENABLED(ULTRA_LCD)
  346. //
  347. // LCD Display output pins
  348. //
  349. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  350. #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
  351. #define LCD_PINS_ENABLE 51 // SID (MOSI)
  352. #define LCD_PINS_D4 52 // SCK (CLK) clock
  353. #elif ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
  354. #define LCD_PINS_RS 40
  355. #define LCD_PINS_ENABLE 42
  356. #define LCD_PINS_D4 65
  357. #define LCD_PINS_D5 66
  358. #define LCD_PINS_D6 44
  359. #define LCD_PINS_D7 64
  360. #else
  361. #if ENABLED(CR10_STOCKDISPLAY)
  362. #define LCD_PINS_RS 27
  363. #define LCD_PINS_ENABLE 29
  364. #define LCD_PINS_D4 25
  365. #if DISABLED(NEWPANEL)
  366. #define BEEPER_PIN 37
  367. #endif
  368. #elif ENABLED(ZONESTAR_LCD)
  369. #define LCD_PINS_RS 64
  370. #define LCD_PINS_ENABLE 44
  371. #define LCD_PINS_D4 63
  372. #define LCD_PINS_D5 40
  373. #define LCD_PINS_D6 42
  374. #define LCD_PINS_D7 65
  375. #else
  376. #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
  377. #define LCD_PINS_DC 25 // Set as output on init
  378. #define LCD_PINS_RS 27 // Pull low for 1s to init
  379. // DOGM SPI LCD Support
  380. #define DOGLCD_CS 16
  381. #define DOGLCD_MOSI 17
  382. #define DOGLCD_SCK 23
  383. #define DOGLCD_A0 LCD_PINS_DC
  384. #else
  385. #define LCD_PINS_RS 16
  386. #define LCD_PINS_ENABLE 17
  387. #define LCD_PINS_D4 23
  388. #define LCD_PINS_D5 25
  389. #define LCD_PINS_D6 27
  390. #endif
  391. #define LCD_PINS_D7 29
  392. #if DISABLED(NEWPANEL)
  393. #define BEEPER_PIN 33
  394. #endif
  395. #endif
  396. #if DISABLED(NEWPANEL)
  397. // Buttons are attached to a shift register
  398. // Not wired yet
  399. //#define SHIFT_CLK 38
  400. //#define SHIFT_LD 42
  401. //#define SHIFT_OUT 40
  402. //#define SHIFT_EN 17
  403. #endif
  404. #endif
  405. //
  406. // LCD Display input pins
  407. //
  408. #if ENABLED(NEWPANEL)
  409. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  410. #define BEEPER_PIN 37
  411. #if ENABLED(CR10_STOCKDISPLAY)
  412. #define BTN_EN1 17
  413. #define BTN_EN2 23
  414. #else
  415. #define BTN_EN1 31
  416. #define BTN_EN2 33
  417. #endif
  418. #define BTN_ENC 35
  419. #define SD_DETECT_PIN 49
  420. #define KILL_PIN 41
  421. #if ENABLED(BQ_LCD_SMART_CONTROLLER)
  422. #define LCD_BACKLIGHT_PIN 39
  423. #endif
  424. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  425. #define BTN_EN1 64
  426. #define BTN_EN2 59
  427. #define BTN_ENC 63
  428. #define SD_DETECT_PIN 42
  429. #elif ENABLED(LCD_I2C_PANELOLU2)
  430. #define BTN_EN1 47
  431. #define BTN_EN2 43
  432. #define BTN_ENC 32
  433. #define LCD_SDSS SDSS
  434. #define KILL_PIN 41
  435. #elif ENABLED(LCD_I2C_VIKI)
  436. #define BTN_EN1 40 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
  437. #define BTN_EN2 42 // for sake of the wiring diagram for RAMPS 1.4 we keep 40/42, confirmed working.
  438. #define BTN_ENC -1
  439. #define LCD_SDSS SDSS
  440. #define SD_DETECT_PIN 49
  441. #elif ENABLED(VIKI2) || ENABLED(miniVIKI)
  442. #define DOGLCD_CS 45
  443. #define DOGLCD_A0 44
  444. #define LCD_SCREEN_ROT_180
  445. #define BEEPER_PIN 33
  446. #define STAT_LED_RED_PIN 32
  447. #define STAT_LED_BLUE_PIN 35
  448. #define BTN_EN1 22
  449. #define BTN_EN2 7
  450. #define BTN_ENC 39
  451. #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
  452. #define KILL_PIN 31
  453. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  454. #define DOGLCD_CS 29
  455. #define DOGLCD_A0 27
  456. #define BEEPER_PIN 23
  457. #define LCD_BACKLIGHT_PIN 33
  458. #define BTN_EN1 35
  459. #define BTN_EN2 37
  460. #define BTN_ENC 31
  461. #define LCD_SDSS SDSS
  462. #define SD_DETECT_PIN 49
  463. #define KILL_PIN 41
  464. #elif ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
  465. #define DOGLCD_A0 27
  466. #define DOGLCD_CS 25
  467. // GLCD features
  468. //#define LCD_CONTRAST 190
  469. // Uncomment screen orientation
  470. //#define LCD_SCREEN_ROT_90
  471. //#define LCD_SCREEN_ROT_180
  472. //#define LCD_SCREEN_ROT_270
  473. #define BEEPER_PIN 37
  474. // not connected to a pin
  475. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  476. #define BTN_EN1 31
  477. #define BTN_EN2 33
  478. #define BTN_ENC 35
  479. #define SD_DETECT_PIN 49
  480. #define KILL_PIN 41
  481. #elif ENABLED(MINIPANEL)
  482. #define BEEPER_PIN 42
  483. // not connected to a pin
  484. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  485. #define DOGLCD_A0 44
  486. #define DOGLCD_CS 66
  487. // GLCD features
  488. //#define LCD_CONTRAST 190
  489. // Uncomment screen orientation
  490. //#define LCD_SCREEN_ROT_90
  491. //#define LCD_SCREEN_ROT_180
  492. //#define LCD_SCREEN_ROT_270
  493. #define BTN_EN1 40
  494. #define BTN_EN2 63
  495. #define BTN_ENC 59
  496. #define SD_DETECT_PIN 49
  497. #define KILL_PIN 64
  498. #elif ENABLED(ZONESTAR_LCD)
  499. #define ADC_KEYPAD_PIN 12
  500. #else
  501. // Beeper on AUX-4
  502. #define BEEPER_PIN 33
  503. // Buttons are directly attached using AUX-2
  504. #if ENABLED(REPRAPWORLD_KEYPAD)
  505. #define SHIFT_OUT 40
  506. #define SHIFT_CLK 44
  507. #define SHIFT_LD 42
  508. #define BTN_EN1 64
  509. #define BTN_EN2 59
  510. #define BTN_ENC 63
  511. #elif ENABLED(PANEL_ONE)
  512. #define BTN_EN1 59 // AUX2 PIN 3
  513. #define BTN_EN2 63 // AUX2 PIN 4
  514. #define BTN_ENC 49 // AUX3 PIN 7
  515. #else
  516. #define BTN_EN1 37
  517. #define BTN_EN2 35
  518. #define BTN_ENC 31
  519. #endif
  520. #if ENABLED(G3D_PANEL)
  521. #define SD_DETECT_PIN 49
  522. #define KILL_PIN 41
  523. #endif
  524. #endif
  525. #endif // NEWPANEL
  526. #endif // ULTRA_LCD