2017-07-18 18:29:06 -05:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Arduino Due with RAMPS-SMART pin assignments
|
|
|
|
*
|
|
|
|
* Applies to the following boards:
|
|
|
|
*
|
|
|
|
* RAMPS_SMART_EFB (Hotend, Fan, Bed)
|
|
|
|
* RAMPS_SMART_EEB (Hotend0, Hotend1, Bed)
|
|
|
|
* RAMPS_SMART_EFF (Hotend, Fan0, Fan1)
|
|
|
|
* RAMPS_SMART_EEF (Hotend0, Hotend1, Fan)
|
|
|
|
* RAMPS_SMART_SF (Spindle, Controller Fan)
|
|
|
|
*
|
|
|
|
* Differences between
|
|
|
|
* RAMPS_14 | RAMPS-SMART
|
|
|
|
* NONE | D16 (Additional AUX-3 pin(AUX3_2PIN), shares the same pin with AUX4_18PIN)
|
|
|
|
* NONE | D17 (Additional AUX-3 pin(AUX3_1PIN), shares the same pin with AUX4_17PIN)
|
|
|
|
* D0 | NONE
|
|
|
|
* D1 | NONE
|
|
|
|
* A3/D57 | NONE
|
|
|
|
* A4/D58 | NONE
|
|
|
|
* A5/D59 | A3/D57
|
|
|
|
* A9/D63 | A4/D58
|
|
|
|
* A10/D64 | A5/D59
|
|
|
|
* A11/D65 | D66
|
|
|
|
* A12/D66 | D67
|
|
|
|
* A13 | A9
|
|
|
|
* A14 | A10
|
|
|
|
* A15 | A11
|
2018-04-10 04:02:55 -05:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER works fine connected to AUX-4 with
|
|
|
|
* Smart Adapter, but requires removing the AUX3 pin header on the adapter to fit.
|
|
|
|
* To use the SD card reader, wire its pins to AUX-3 (and use Software SPI).
|
|
|
|
*
|
|
|
|
* To use Hardware SPI for SD, the SDSS pin must be set to 52 instead of 53.
|
|
|
|
* Hardware SPI also requires additional wiring because the board doesn't pass
|
|
|
|
* the 6-pin SPI header from the DUE board.
|
|
|
|
* (Search the web for "Arduino DUE Board Pinout" to see the correct header.)
|
2017-07-18 18:29:06 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SAM3X8E__
|
2018-11-08 21:57:15 -06:00
|
|
|
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
|
2017-07-18 18:29:06 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef BOARD_NAME
|
|
|
|
#define BOARD_NAME "RAMPS-SMART"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define IS_RAMPS_SMART
|
|
|
|
#include "pins_RAMPS.h"
|
|
|
|
|
2018-03-10 03:02:53 -06:00
|
|
|
// I2C EEPROM with 4K of space
|
|
|
|
#define I2C_EEPROM
|
|
|
|
#define E2END 0xFFF
|
|
|
|
|
2018-04-10 03:34:20 -05:00
|
|
|
#define RESET_PIN 42 // Resets the board if the jumper is attached
|
|
|
|
|
2017-07-18 18:29:06 -05:00
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
|
|
|
#undef TEMP_0_PIN
|
|
|
|
#define TEMP_0_PIN 9 // Analog Input
|
|
|
|
|
|
|
|
#undef TEMP_1_PIN
|
|
|
|
#define TEMP_1_PIN 10 // Analog Input
|
|
|
|
|
|
|
|
#undef TEMP_BED_PIN
|
|
|
|
#define TEMP_BED_PIN 11 // Analog Input
|
|
|
|
|
|
|
|
// SPI for Max6675 or Max31855 Thermocouple
|
|
|
|
#if DISABLED(SDSUPPORT)
|
|
|
|
#undef MAX6675_SS
|
2018-03-28 12:51:59 -05:00
|
|
|
#define MAX6675_SS 67 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
|
2017-07-18 18:29:06 -05:00
|
|
|
#else
|
|
|
|
#undef MAX6675_SS
|
2018-03-28 12:51:59 -05:00
|
|
|
#define MAX6675_SS 67 // 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
|
2017-07-18 18:29:06 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2017-10-16 02:33:07 -05:00
|
|
|
// Support for AZSMZ 12864 LCD with SD Card 3D printer smart controller control panel
|
|
|
|
#if ENABLED(AZSMZ_12864)
|
2018-03-28 12:51:59 -05:00
|
|
|
#define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
|
2017-07-18 18:29:06 -05:00
|
|
|
#define DOGLCD_A0 59
|
|
|
|
#define DOGLCD_CS 44
|
|
|
|
#define BTN_EN1 58
|
|
|
|
#define BTN_EN2 40
|
2018-03-28 12:51:59 -05:00
|
|
|
#define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
|
|
|
|
#define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
|
2017-07-18 18:29:06 -05:00
|
|
|
#define KILL_PIN 42
|
|
|
|
#endif
|