2015-01-25 21:40:00 -05: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__
|
|
|
|
#error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
|
|
|
|
#endif
|
|
|
|
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
|
2015-01-25 21:40:00 -05:00
|
|
|
#error These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
|
2015-01-25 21:40:00 -05:00
|
|
|
#define FAN_PIN 22
|
|
|
|
#else
|
|
|
|
#define FAN_PIN 16
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define X_STOP_PIN 35
|
2015-08-03 15:30:37 -04:00
|
|
|
#if ENABLED(SDSUPPORT)
|
2015-07-10 22:56:53 -04:00
|
|
|
#define Y_STOP_PIN 37 // Move Ystop to Estop socket
|
|
|
|
#else
|
|
|
|
#define Y_STOP_PIN 8 // Ystop in Ystop socket
|
|
|
|
#endif
|
2015-01-25 21:40:00 -05:00
|
|
|
#define Z_STOP_PIN 36
|
|
|
|
#define TEMP_0_PIN 1 // Extruder / Analog pin numbering
|
|
|
|
#define TEMP_BED_PIN 0 // Bed / Analog pin numbering
|
|
|
|
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(FILAMENT_SENSOR)
|
2015-01-25 21:40:00 -05:00
|
|
|
#define FILWIDTH_PIN 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define TEMP_1_PIN -1
|
|
|
|
#define TEMP_2_PIN -1
|
|
|
|
|
2015-03-29 00:11:12 -04:00
|
|
|
////LCD Pin Setup////
|
|
|
|
|
2015-01-25 21:40:00 -05:00
|
|
|
#define SDPOWER -1
|
|
|
|
#define SDSS 8
|
|
|
|
#define LED_PIN -1
|
|
|
|
#define PS_ON_PIN -1
|
|
|
|
#define KILL_PIN -1
|
|
|
|
#define ALARM_PIN -1
|
|
|
|
|
2015-07-31 01:11:19 -04:00
|
|
|
#if DISABLED(SDSUPPORT)
|
2015-07-10 22:56:53 -04:00
|
|
|
// these pins are defined in the SD library if building with SD support
|
2015-01-25 21:40:00 -05:00
|
|
|
#define SCK_PIN 9
|
|
|
|
#define MISO_PIN 11
|
|
|
|
#define MOSI_PIN 10
|
|
|
|
#endif
|
|
|
|
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
|
2015-01-25 21:40:00 -05:00
|
|
|
//we have no buzzer installed
|
2015-07-31 02:19:11 -04:00
|
|
|
#define BEEPER_PIN -1
|
2015-01-25 21:40:00 -05:00
|
|
|
//LCD Pins
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(LCD_I2C_PANELOLU2)
|
2015-01-25 21:40:00 -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)
|
|
|
|
#endif // LCD_I2C_PANELOLU2
|
|
|
|
//not connected to a pin
|
2015-10-03 02:08:58 -04:00
|
|
|
#define SD_DETECT_PIN -1
|
2015-01-25 21:40:00 -05:00
|
|
|
#endif // ULTRA_LCD && NEWPANEL
|
2015-03-29 00:11:12 -04:00
|
|
|
|
2015-07-31 01:11:19 -04:00
|
|
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
2015-10-03 02:08:58 -04:00
|
|
|
#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
|
|
|
|
#define BTN_ENC 47 //the click switch
|
|
|
|
|
|
|
|
#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
|
2015-03-29 00:11:12 -04:00
|
|
|
#endif
|