2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-01-25 20:40:00 -06:00
|
|
|
/**
|
|
|
|
* Printrboard pin assignments (AT90USB1286)
|
|
|
|
* Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
|
|
|
|
* http://www.pjrc.com/teensy/teensyduino.html
|
|
|
|
* See http://reprap.org/wiki/Printrboard for more info
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AVR_AT90USB1286__
|
2016-05-13 07:10:23 -05:00
|
|
|
#error "Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu."
|
2015-01-25 20:40:00 -06:00
|
|
|
#endif
|
|
|
|
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
|
2016-05-13 07:10:23 -05:00
|
|
|
#error "These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h"
|
2015-01-25 20:40:00 -06:00
|
|
|
#endif
|
|
|
|
|
2016-06-30 04:24:29 -05:00
|
|
|
#define BOARD_NAME "Printrboard"
|
2016-09-16 13:25:14 -05:00
|
|
|
|
|
|
|
#define USBCON 1286 // Disable MarlinSerial etc.
|
2015-01-25 20:40:00 -06:00
|
|
|
#define LARGE_FLASH true
|
|
|
|
|
2016-03-06 00:03:16 -06:00
|
|
|
// Disable JTAG pins so they can be used for the Extrudrboard
|
|
|
|
#define DISABLE_JTAG true
|
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
#define X_STOP_PIN 35
|
|
|
|
#if ENABLED(SDSUPPORT)
|
|
|
|
#define Y_STOP_PIN 37 // Move Ystop to Estop socket
|
|
|
|
#else
|
|
|
|
#define Y_STOP_PIN 8 // Ystop in Ystop socket
|
|
|
|
#endif
|
|
|
|
#define Z_STOP_PIN 36
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2015-01-25 20:40:00 -06:00
|
|
|
#define X_STEP_PIN 0
|
|
|
|
#define X_DIR_PIN 1
|
|
|
|
#define X_ENABLE_PIN 39
|
|
|
|
|
|
|
|
#define Y_STEP_PIN 2
|
|
|
|
#define Y_DIR_PIN 3
|
|
|
|
#define Y_ENABLE_PIN 38
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 4
|
|
|
|
#define Z_DIR_PIN 5
|
|
|
|
#define Z_ENABLE_PIN 23
|
|
|
|
|
|
|
|
#define E0_STEP_PIN 6
|
|
|
|
#define E0_DIR_PIN 7
|
|
|
|
#define E0_ENABLE_PIN 19
|
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
|
|
|
#define TEMP_0_PIN 1 // Analog Input
|
|
|
|
#define TEMP_BED_PIN 0 // Analog Input
|
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
#define HEATER_0_PIN 21 // Extruder
|
2015-01-25 20:40:00 -06:00
|
|
|
#define HEATER_1_PIN 46
|
|
|
|
#define HEATER_2_PIN 47
|
|
|
|
#define HEATER_BED_PIN 20
|
|
|
|
|
|
|
|
// If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
|
|
|
|
// fastio pin numbering otherwise
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
|
2015-01-25 20:40:00 -06:00
|
|
|
#define FAN_PIN 22
|
|
|
|
#else
|
|
|
|
#define FAN_PIN 16
|
|
|
|
#endif
|
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2016-03-06 00:03:16 -06:00
|
|
|
#define SDSS 26
|
2017-06-02 12:04:54 -05:00
|
|
|
|
|
|
|
#ifndef FILWIDTH_PIN
|
|
|
|
#define FILWIDTH_PIN 2 // Analog Input
|
|
|
|
#endif
|
2015-01-25 20:40:00 -06:00
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
|
2016-10-08 15:27:04 -05:00
|
|
|
// we have no buzzer installed
|
2015-07-31 01:19:11 -05:00
|
|
|
#define BEEPER_PIN -1
|
2016-03-06 00:03:16 -06:00
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
// LCD Pins
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(LCD_I2C_PANELOLU2)
|
2016-10-08 15:27:04 -05:00
|
|
|
#define BTN_EN1 27 // RX1 - fastio.h pin mapping 27
|
|
|
|
#define BTN_EN2 26 // TX1 - fastio.h pin mapping 26
|
|
|
|
#define BTN_ENC 43 // A3 - fastio.h pin mapping 43
|
|
|
|
#define SDSS 40 // use SD card on Panelolu2 (Teensyduino pin mapping)
|
2016-03-06 00:03:16 -06:00
|
|
|
#else
|
|
|
|
#define BTN_EN1 16
|
|
|
|
#define BTN_EN2 17
|
2016-10-08 15:27:04 -05:00
|
|
|
#define BTN_ENC 18 // the click
|
2015-01-25 20:40:00 -06:00
|
|
|
#endif // LCD_I2C_PANELOLU2
|
2016-03-06 00:03:16 -06:00
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
// not connected to a pin
|
2015-10-03 01:08:58 -05:00
|
|
|
#define SD_DETECT_PIN -1
|
2016-03-06 00:03:16 -06:00
|
|
|
|
|
|
|
#define LCD_PINS_RS 9
|
|
|
|
#define LCD_PINS_ENABLE 8
|
|
|
|
#define LCD_PINS_D4 7
|
|
|
|
#define LCD_PINS_D5 6
|
|
|
|
#define LCD_PINS_D6 5
|
|
|
|
#define LCD_PINS_D7 4
|
|
|
|
|
2015-01-25 20:40:00 -06:00
|
|
|
#endif // ULTRA_LCD && NEWPANEL
|
2015-03-28 23:11:12 -05:00
|
|
|
|
2015-07-31 00:11:19 -05:00
|
|
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
2016-10-08 15:27:04 -05:00
|
|
|
// FastIO
|
2016-06-04 14:29:01 -05:00
|
|
|
#define BEEPER_PIN 32
|
2015-10-03 01:08:58 -05:00
|
|
|
// Pins for DOGM SPI LCD Support
|
2016-10-08 15:27:04 -05:00
|
|
|
#define DOGLCD_A0 42 // Non-FastIO
|
|
|
|
#define DOGLCD_CS 43 // Non-FastIO
|
2015-10-03 01:08:58 -05:00
|
|
|
#define LCD_SCREEN_ROT_180
|
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
// The encoder and click button (FastIO Pins)
|
2015-10-03 01:08:58 -05:00
|
|
|
#define BTN_EN1 26
|
|
|
|
#define BTN_EN2 27
|
2016-07-28 15:58:37 -05:00
|
|
|
#define BTN_ENC 47
|
2015-10-03 01:08:58 -05:00
|
|
|
|
|
|
|
#define SDSS 45
|
|
|
|
#define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
|
2016-09-24 16:26:41 -05:00
|
|
|
|
2016-10-08 15:27:04 -05:00
|
|
|
#define STAT_LED_RED_PIN 12 // Non-FastIO
|
|
|
|
#define STAT_LED_BLUE_PIN 10 // Non-FastIO
|
2016-09-24 16:26:41 -05:00
|
|
|
|
2015-03-28 23:11:12 -05:00
|
|
|
#endif
|