2016-03-25 06:19:46 +00:00
|
|
|
/**
|
2016-03-24 18:01:20 +00: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/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-03-10 22:33:53 +00: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 12:10:23 +00:00
|
|
|
#error "Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu."
|
2016-03-10 22:33:53 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
|
2016-05-13 12:10:23 +00:00
|
|
|
#error "These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h"
|
2016-03-10 22:33:53 +00:00
|
|
|
#endif
|
|
|
|
|
2016-06-30 09:24:29 +00:00
|
|
|
#define BOARD_NAME "Printrboard Rev F"
|
2016-03-10 22:33:53 +00:00
|
|
|
#define LARGE_FLASH true
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
#define HEATER_0_PIN 21 // Extruder
|
|
|
|
#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
|
|
|
|
#if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
|
|
|
|
#define FAN_PIN 22
|
|
|
|
#else
|
|
|
|
#define FAN_PIN 16
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define X_STOP_PIN 35
|
|
|
|
#define Y_STOP_PIN 12
|
|
|
|
#define Z_STOP_PIN 36
|
|
|
|
|
|
|
|
#define TEMP_0_PIN 1 // Extruder / Analog pin numbering
|
|
|
|
#define TEMP_BED_PIN 0 // Bed / Analog pin numbering
|
|
|
|
|
2016-03-30 03:27:54 +00:00
|
|
|
#define FILWIDTH_PIN 2 // ANALOG NUMBERING
|
2016-03-10 22:33:53 +00:00
|
|
|
|
|
|
|
////LCD Pin Setup////
|
|
|
|
|
|
|
|
#define SDSS 20 // Teensylu pin mapping
|
|
|
|
|
|
|
|
// uncomment to enable an I2C based DAC like on the Printrboard REVF
|
|
|
|
#define DAC_STEPPER_CURRENT
|
|
|
|
// Number of channels available for DAC, For Printrboar REVF there are 4
|
2016-04-12 02:42:20 +00:00
|
|
|
#define DAC_STEPPER_ORDER {3,2,1,0}
|
2016-03-10 22:33:53 +00:00
|
|
|
|
2016-04-12 02:42:20 +00:00
|
|
|
#define DAC_STEPPER_SENSE 0.11
|
|
|
|
#define DAC_STEPPER_ADDRESS 0
|
|
|
|
#define DAC_STEPPER_MAX 3520
|
|
|
|
#define DAC_STEPPER_VREF 1 //internal Vref, gain 1x = 2.048V
|
|
|
|
#define DAC_STEPPER_GAIN 0
|
2016-06-27 19:36:21 +00:00
|
|
|
#define DAC_OR_ADDRESS 0x00
|
2016-03-10 22:33:53 +00:00
|
|
|
|
|
|
|
#if DISABLED(SDSUPPORT)
|
|
|
|
// these pins are defined in the SD library if building with SD support
|
|
|
|
#define SCK_PIN 9
|
|
|
|
#define MISO_PIN 11
|
|
|
|
#define MOSI_PIN 10
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
#define BEEPER_PIN -1
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
#define BTN_EN1 16
|
|
|
|
#define BTN_EN2 17
|
|
|
|
#define BTN_ENC 18//the click
|
|
|
|
|
|
|
|
#define SD_DETECT_PIN -1
|
|
|
|
|
|
|
|
//encoder rotation values
|
|
|
|
#define encrot0 0
|
|
|
|
#define encrot1 2
|
|
|
|
#define encrot2 3
|
|
|
|
#define encrot3 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
|
|
#define BEEPER_PIN 32 //FastIO
|
|
|
|
// Pins for DOGM SPI LCD Support
|
|
|
|
#define DOGLCD_A0 42 //Non-FastIO
|
|
|
|
#define DOGLCD_CS 43 //Non-FastIO
|
|
|
|
#define LCD_SCREEN_ROT_180
|
|
|
|
|
|
|
|
//The encoder and click button (FastIO Pins)
|
|
|
|
#define BTN_EN1 26
|
|
|
|
#define BTN_EN2 27
|
2016-07-28 20:58:37 +00:00
|
|
|
#define BTN_ENC 47
|
2016-03-10 22:33:53 +00:00
|
|
|
|
|
|
|
#define SDSS 45
|
|
|
|
#define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
|
|
|
|
|
|
|
|
#if ENABLED(TEMP_STAT_LEDS)
|
|
|
|
#define STAT_LED_RED 12 //Non-FastIO
|
|
|
|
#define STAT_LED_BLUE 10 //Non-FastIO
|
|
|
|
#endif
|
|
|
|
#endif
|