2016-03-25 02:19:46 -04:00
|
|
|
/**
|
2016-03-24 14:01:20 -04: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 21:40:00 -05:00
|
|
|
/**
|
|
|
|
* 5DPrint D8 Driver board pin assignments
|
|
|
|
*
|
|
|
|
* https://bitbucket.org/makible/5dprint-d8-controller-board
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AVR_AT90USB1286__
|
2016-05-13 08:10:23 -04:00
|
|
|
#error "Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu."
|
2015-01-25 21:40:00 -05:00
|
|
|
#endif
|
|
|
|
|
2016-04-02 21:53:05 -04:00
|
|
|
#define DEFAULT_MACHINE_NAME "Makibox"
|
2016-06-30 05:24:29 -04:00
|
|
|
#define BOARD_NAME "5DPrint D8"
|
2016-04-02 21:53:05 -04:00
|
|
|
|
2016-09-16 14:22:52 -04:00
|
|
|
#define USBCON 1286 // Disable MarlinSerial etc.
|
2015-01-25 21:40:00 -05:00
|
|
|
#define LARGE_FLASH true
|
|
|
|
|
2016-08-22 18:05:22 -04:00
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
#define X_STOP_PIN 37
|
|
|
|
#define Y_STOP_PIN 36
|
|
|
|
#define Z_STOP_PIN 39
|
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2015-01-25 21:40:00 -05:00
|
|
|
#define X_STEP_PIN 0
|
|
|
|
#define X_DIR_PIN 1
|
|
|
|
#define X_ENABLE_PIN 23
|
|
|
|
|
|
|
|
#define Y_STEP_PIN 2
|
|
|
|
#define Y_DIR_PIN 3
|
|
|
|
#define Y_ENABLE_PIN 19
|
|
|
|
|
|
|
|
#define Z_STEP_PIN 4
|
|
|
|
#define Z_DIR_PIN 5
|
|
|
|
#define Z_ENABLE_PIN 18
|
|
|
|
|
|
|
|
#define E0_STEP_PIN 6
|
|
|
|
#define E0_DIR_PIN 7
|
|
|
|
#define E0_ENABLE_PIN 17
|
|
|
|
|
2016-08-22 18:05:22 -04:00
|
|
|
// Microstepping pins - Mapping not from fastio.h (?)
|
|
|
|
#define X_MS1_PIN 25
|
|
|
|
#define X_MS2_PIN 26
|
|
|
|
#define Y_MS1_PIN 9
|
|
|
|
#define Y_MS2_PIN 8
|
|
|
|
#define Z_MS1_PIN 7
|
|
|
|
#define Z_MS2_PIN 6
|
|
|
|
#define E0_MS1_PIN 5
|
|
|
|
#define E0_MS2_PIN 4
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2016-10-05 02:52:43 -04:00
|
|
|
#define TEMP_0_PIN 1 // Analog Input
|
|
|
|
#define TEMP_BED_PIN 0 // Analog Input
|
2016-08-22 18:05:22 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
#define HEATER_0_PIN 21
|
|
|
|
#define HEATER_BED_PIN 20
|
|
|
|
|
2015-01-25 21:40:00 -05:00
|
|
|
// You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
|
|
|
|
// for the fan and Teensyduino uses a different pin mapping.
|
2016-08-22 18:05:22 -04:00
|
|
|
#define FAN_PIN 16
|
2015-01-25 21:40:00 -05:00
|
|
|
|
2016-08-22 18:05:22 -04:00
|
|
|
//
|
2016-10-08 16:27:04 -04:00
|
|
|
// Misc. Functions
|
2016-08-22 18:05:22 -04:00
|
|
|
//
|
2015-01-25 21:40:00 -05:00
|
|
|
#define SDSS 20
|