Commit a06a7f4d authored by MagoKimbra's avatar MagoKimbra

Add board.h

parent e93e3dd0
#ifndef CONFIGURATION_H #ifndef CONFIGURATION_H
#define CONFIGURATION_H #define CONFIGURATION_H
#include "boards.h"
// User-specified version info of this build to display in [Pronterface, etc] terminal window during // User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
// build by the user have been successfully uploaded into firmware. // build by the user have been successfully uploaded into firmware.
#define STRING_VERSION_CONFIG_H __DATE__ " 16/12/2014 " __TIME__ // build date and time #define STRING_VERSION_CONFIG_H __DATE__ " 21/12/2014 " __TIME__ // build date and time
#define STRING_CONFIG_H_AUTHOR "(MagoKimbra: magokimbra@hotmail.com, Version 4.0)" // Who made the changes. #define STRING_CONFIG_H_AUTHOR "(MagoKimbra: magokimbra@hotmail.com, Version 4.0)" // Who made the changes.
// SERIAL_PORT selects which serial port should be used for communication with the host. // SERIAL_PORT selects which serial port should be used for communication with the host.
...@@ -27,8 +29,8 @@ ...@@ -27,8 +29,8 @@
// If you want test the firmware uncomment below. Use Serial arduino monitor... // If you want test the firmware uncomment below. Use Serial arduino monitor...
//#define FIRMWARE_TEST //#define FIRMWARE_TEST
#ifdef FIRMWARE_TEST #ifdef FIRMWARE_TEST
#undef BAUDRATE #undef BAUDRATE
#define BAUDRATE 115200 // Baudrate setting to 115200 because serial monitor arduino fuction at max 115200 baudrate. #define BAUDRATE 115200 // Baudrate setting to 115200 because serial monitor arduino fuction at max 115200 baudrate.
#endif #endif
/***********************************************************************\ /***********************************************************************\
...@@ -40,65 +42,21 @@ ...@@ -40,65 +42,21 @@
//#define SCARA //#define SCARA
#if defined(CARTESIAN) #if defined(CARTESIAN)
#include "Configuration_Cartesian.h" #include "Configuration_Cartesian.h"
#elif defined(COREXY) #elif defined(COREXY)
#include "Configuration_Corexy.h" #include "Configuration_Corexy.h"
#elif defined(DELTA) #elif defined(DELTA)
#include "Configuration_Delta.h" #include "Configuration_Delta.h"
#elif defined(SCARA) #elif defined(SCARA)
#include "Configuration_Scara.h" #include "Configuration_Scara.h"
#endif #endif
/***********************************************************************/ /***********************************************************************/
//// The following define selects which electronics board you have. Please choose the one that matches your setup // The following define selects which electronics board you have.
// 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics" // Please choose the name from boards.h that matches your setup
// 11 = Gen7 v1.1, v1.2 = 11
// 12 = Gen7 v1.3
// 13 = Gen7 v1.4
// 2 = Cheaptronic v1.0
// 20 = Sethi 3D_1
// 3 = MEGA/RAMPS up to 1.2 = 3
// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
// 36 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
// 4 = Duemilanove w/ ATMega328P pin assignment
// 5 = Gen6
// 51 = Gen6 deluxe
// 6 = Sanguinololu < 1.2
// 62 = Sanguinololu 1.2 and above
// 63 = Melzi
// 64 = STB V1.1
// 65 = Azteeg X1
// 66 = Melzi with ATmega1284 (MaKr3d version)
// 67 = Azteeg X3
// 68 = Azteeg X3 Pro
// 7 = Ultimaker
// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
// 72 = Ultimainboard 2.x (Uses TEMP_SENSOR 20)
// 77 = 3Drag Controller
// 8 = Teensylu
// 80 = Rumba
// 81 = Printrboard (AT90USB1286)
// 82 = Brainwave (AT90USB646)
// 83 = SAV Mk-I (AT90USB1286)
// 84 = Teensy++2.0 (AT90USB1286) // CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
// 9 = Gen3+
// 22 = Gen3 Monolithic Electronics
// 70 = Megatronics
// 701= Megatronics v2.0
// 702= Minitronics v1.0 / v1.1
// 703= Megatronics v3.0
// 90 = Alpha OMCA board
// 91 = Final OMCA board
// 301= Rambo
// 21 = Elefu Ra Board (v3)
// 88 = 5DPrint D8 Driver Board
// 999 = Leapfrog
#ifndef MOTHERBOARD #ifndef MOTHERBOARD
#define MOTHERBOARD 33 #define MOTHERBOARD BOARD_RAMPS_13_EFB
#endif #endif
// This defines the number of extruder real or virtual // This defines the number of extruder real or virtual
......
...@@ -488,7 +488,11 @@ void serial_echopair_P(const char *s_P, double v) ...@@ -488,7 +488,11 @@ void serial_echopair_P(const char *s_P, double v)
void serial_echopair_P(const char *s_P, unsigned long v) void serial_echopair_P(const char *s_P, unsigned long v)
{ serialprintPGM(s_P); SERIAL_ECHO(v); } { serialprintPGM(s_P); SERIAL_ECHO(v); }
extern "C"{ #ifdef SDSUPPORT
#include "SdFatUtil.h"
int freeMemory() { return SdFatUtil::FreeRam(); }
#else
extern "C" {
extern unsigned int __bss_end; extern unsigned int __bss_end;
extern unsigned int __heap_start; extern unsigned int __heap_start;
extern void *__brkval; extern void *__brkval;
...@@ -496,14 +500,15 @@ extern "C"{ ...@@ -496,14 +500,15 @@ extern "C"{
int freeMemory() { int freeMemory() {
int free_memory; int free_memory;
if((int)__brkval == 0) if ((int)__brkval == 0)
free_memory = ((int)&free_memory) - ((int)&__bss_end); free_memory = ((int)&free_memory) - ((int)&__bss_end);
else else
free_memory = ((int)&free_memory) - ((int)__brkval); free_memory = ((int)&free_memory) - ((int)__brkval);
return free_memory; return free_memory;
} }
} }
#endif //!SDSUPPORT
//adds an command to the main command buffer //adds an command to the main command buffer
//thats really done in a non-safe way. //thats really done in a non-safe way.
...@@ -898,11 +903,11 @@ void get_command() ...@@ -898,11 +903,11 @@ void get_command()
return; //if empty line return; //if empty line
} }
cmdbuffer[bufindw][serial_count] = 0; //terminate string cmdbuffer[bufindw][serial_count] = 0; //terminate string
// if(!comment_mode){ // if(!comment_mode){
fromsd[bufindw] = true; fromsd[bufindw] = true;
buflen += 1; buflen += 1;
bufindw = (bufindw + 1)%BUFSIZE; bufindw = (bufindw + 1)%BUFSIZE;
// } // }
comment_mode = false; //for new command comment_mode = false; //for new command
serial_count = 0; //clear buffer serial_count = 0; //clear buffer
} }
...@@ -1156,11 +1161,16 @@ static void run_z_probe() { ...@@ -1156,11 +1161,16 @@ static void run_z_probe() {
static void do_blocking_move_to(float x, float y, float z) { static void do_blocking_move_to(float x, float y, float z) {
float oldFeedRate = feedrate; float oldFeedRate = feedrate;
feedrate = homing_feedrate[Z_AXIS];
current_position[Z_AXIS] = z;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder, active_driver);
st_synchronize();
feedrate = XY_TRAVEL_SPEED; feedrate = XY_TRAVEL_SPEED;
current_position[X_AXIS] = x; current_position[X_AXIS] = x;
current_position[Y_AXIS] = y; current_position[Y_AXIS] = y;
current_position[Z_AXIS] = z;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder, active_driver); plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder, active_driver);
st_synchronize(); st_synchronize();
......
#ifndef BOARDS_H
#define BOARDS_H
#define BOARD_UNKNOWN -1
#define BOARD_GEN7_CUSTOM 10 // Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
#define BOARD_GEN7_12 11 // Gen7 v1.1, v1.2
#define BOARD_GEN7_13 12 // Gen7 v1.3
#define BOARD_GEN7_14 13 // Gen7 v1.4
#define BOARD_CHEAPTRONIC 2 // Cheaptronic v1.0
#define BOARD_SETHI 20 // Sethi 3D_1
#define BOARD_RAMPS_OLD 3 // MEGA/RAMPS up to 1.2
#define BOARD_RAMPS_13_EFB 33 // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
#define BOARD_RAMPS_13_EEB 34 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
#define BOARD_RAMPS_13_EFF 35 // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
#define BOARD_RAMPS_13_EEF 36 // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
#define BOARD_DUEMILANOVE_328P 4 // Duemilanove w/ ATMega328P pin assignment
#define BOARD_GEN6 5 // Gen6
#define BOARD_GEN6_DELUXE 51 // Gen6 deluxe
#define BOARD_SANGUINOLOLU_11 6 // Sanguinololu < 1.2
#define BOARD_SANGUINOLOLU_12 62 // Sanguinololu 1.2 and above
#define BOARD_MELZI 63 // Melzi
#define BOARD_STB_11 64 // STB V1.1
#define BOARD_AZTEEG_X1 65 // Azteeg X1
#define BOARD_MELZI_1284 66 // Melzi with ATmega1284 (MaKr3d version)
#define BOARD_AZTEEG_X3 67 // Azteeg X3
#define BOARD_AZTEEG_X3_PRO 68 // Azteeg X3 Pro
#define BOARD_ULTIMAKER 7 // Ultimaker
#define BOARD_ULTIMAKER_OLD 71 // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
#define BOARD_ULTIMAIN_2 72 // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
#define BOARD_3DRAG 77 // 3Drag Controller
#define BOARD_TEENSYLU 8 // Teensylu
#define BOARD_RUMBA 80 // Rumba
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
#define BOARD_BRAINWAVE 82 // Brainwave (AT90USB646)
#define BOARD_SAV_MKI 83 // SAV Mk-I (AT90USB1286)
#define BOARD_TEENSY2 84 // Teensy++2.0 (AT90USB1286) - CLI compile: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
#define BOARD_GEN3_PLUS 9 // Gen3+
#define BOARD_GEN3_MONOLITHIC 22 // Gen3 Monolithic Electronics
#define BOARD_MEGATRONICS 70 // Megatronics
#define BOARD_MEGATRONICS_2 701 // Megatronics v2.0
#define BOARD_MEGATRONICS_1 702 // Minitronics v1.0
#define BOARD_MEGATRONICS_3 703 // Megatronics v3.0
#define BOARD_OMCA_A 90 // Alpha OMCA board
#define BOARD_OMCA 91 // Final OMCA board
#define BOARD_RAMBO 301 // Rambo
#define BOARD_ELEFU_3 21 // Elefu Ra Board (v3)
#define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board
#define BOARD_LEAPFROG 999 // Leapfrog
#define BOARD_99 99 // This is in pins.h but...?
#define MB(board) (MOTHERBOARD==BOARD_##board)
#define IS_RAMPS (MB(RAMPS_OLD) || MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF))
#endif //__BOARDS_H
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "Wire.h" #include "Wire.h"
// Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro // Settings for the I2C based DIGIPOT (MCP4451) on Azteeg X3 Pro
#if MOTHERBOARD == 88 #if MB(5DPRINT)
#define DIGIPOT_I2C_FACTOR 117.96 #define DIGIPOT_I2C_FACTOR 117.96
#define DIGIPOT_I2C_MAX_CURRENT 1.736 #define DIGIPOT_I2C_MAX_CURRENT 1.736
#else #else
......
...@@ -27,16 +27,16 @@ ...@@ -27,16 +27,16 @@
#define PROTOCOL_VERSION "1.0" #define PROTOCOL_VERSION "1.0"
#if MOTHERBOARD == 7 || MOTHERBOARD == 71 || MOTHERBOARD == 72 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
#define MACHINE_NAME "Ultimaker" #define MACHINE_NAME "Ultimaker"
#define FIRMWARE_URL "http://firmware.ultimaker.com" #define FIRMWARE_URL "http://firmware.ultimaker.com"
#elif MOTHERBOARD == 80 #elif MB(RUMBA)
#define MACHINE_NAME "Rumba" #define MACHINE_NAME "Rumba"
#define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/" #define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/"
#elif MOTHERBOARD == 77 #elif MB(3DRAG)
#define MACHINE_NAME "3Drag" #define MACHINE_NAME "3Drag"
#define FIRMWARE_URL "http://3dprint.elettronicain.it/" #define FIRMWARE_URL "http://3dprint.elettronicain.it/"
#elif MOTHERBOARD == 88 #elif MB(5DPRINT)
#define MACHINE_NAME "Makibox" #define MACHINE_NAME "Makibox"
#define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/" #define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/"
#else #else
......
#ifndef PINS_H #ifndef PINS_H
#define PINS_H #define PINS_H
#if MOTHERBOARD != 88 #include "boards.h"
#if !MB(5DPRINT)
#define X_MS1_PIN -1 #define X_MS1_PIN -1
#define X_MS2_PIN -1 #define X_MS2_PIN -1
#define Y_MS1_PIN -1 #define Y_MS1_PIN -1
...@@ -20,7 +22,7 @@ ...@@ -20,7 +22,7 @@
* https://bitbucket.org/makible/5dprint-d8-controller-board * https://bitbucket.org/makible/5dprint-d8-controller-board
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 88 #if MB(5DPRINT)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc. #define AT90USB 1286 // Disable MarlinSerial etc.
...@@ -92,13 +94,13 @@ ...@@ -92,13 +94,13 @@
#define E0_MS1_PIN 5 #define E0_MS1_PIN 5
#define E0_MS2_PIN 4 #define E0_MS2_PIN 4
#endif /* 88 */ #endif // 5DPRINT
/**************************************************************************************** /****************************************************************************************
* Leapfrog Driver board * Leapfrog Driver board
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 999 // Leapfrog board #if MB(LEAPFROG) // Leapfrog board
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega1280__
...@@ -162,14 +164,14 @@ ...@@ -162,14 +164,14 @@
/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */ /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
#endif #endif // LEAPFROG
/**************************************************************************************** /****************************************************************************************
* *
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 99 #if MB(99)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define ORIG_X_STEP_PIN 2 #define ORIG_X_STEP_PIN 2
...@@ -207,14 +209,14 @@ ...@@ -207,14 +209,14 @@
#define ORIG_HEATER_BED_PIN 4 #define ORIG_HEATER_BED_PIN 4
#define ORIG_TEMP_BED_PIN 10 #define ORIG_TEMP_BED_PIN 10
#endif /* 99 */ #endif // 99
/**************************************************************************************** /****************************************************************************************
* Sethi 3D_1 pin assignment - www.sethi3d.com.br * Sethi 3D_1 pin assignment - www.sethi3d.com.br
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 20 #if MB(SETHI)
#define KNOWN_BOARD #define KNOWN_BOARD
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
...@@ -285,7 +287,7 @@ ...@@ -285,7 +287,7 @@
#define TORIG_X_ENABLE_PIN 12 #define TORIG_X_ENABLE_PIN 12
#define RORIG_X_ENABLE_PIN 13 #define RORIG_X_ENABLE_PIN 13
#endif #endif // SETHI
/**************************************************************************************** /****************************************************************************************
* Gen7 v1.1, v1.2, v1.3 pin assignment * Gen7 v1.1, v1.2, v1.3 pin assignment
...@@ -293,12 +295,12 @@ ...@@ -293,12 +295,12 @@
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 12 #if MB(GEN7_13)
#define MOTHERBOARD 11 #define MOTHERBOARD BOARD_GEN7_12
#define GEN7_VERSION 13 // v1.3 #define GEN7_VERSION 13 // v1.3
#endif #endif
#if MOTHERBOARD == 11 #if MB(GEN7_12)
#define KNOWN_BOARD #define KNOWN_BOARD
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
...@@ -376,11 +378,11 @@ ...@@ -376,11 +378,11 @@
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 13 #if MB(GEN7_14)
#define GEN7_VERSION 14 // v1.4 #define GEN7_VERSION 14 // v1.4
#endif #endif
#if MOTHERBOARD == 13 #if MB(GEN7_14)
#define KNOWN_BOARD #define KNOWN_BOARD
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
...@@ -442,22 +444,19 @@ ...@@ -442,22 +444,19 @@
#define TX_ENABLE_PIN 12 #define TX_ENABLE_PIN 12
#define RX_ENABLE_PIN 13 #define RX_ENABLE_PIN 13
#endif #endif // GEN7
/******************************************************************************* /******************************************************************************
*********
* Gen7 Alfons3 pin assignment * Gen7 Alfons3 pin assignment
* *
******************************************************************************** ******************************************************************************/
********/
/* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/ /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
#if MOTHERBOARD == 10 #if MB(GEN7_CUSTOM)
#define KNOWN_BOARD #define KNOWN_BOARD
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__) #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
#error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
#endif #endif
//x axis pins //x axis pins
...@@ -525,13 +524,13 @@ ...@@ -525,13 +524,13 @@
#define BTN_EN2 10 #define BTN_EN2 10
#define BTN_ENC 12 //the click #define BTN_ENC 12 //the click
#endif #endif // GEN7_CUSTOM
/**************************************************************************************** /****************************************************************************************
* Arduino Mega pin assignment * Arduino Mega pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 35 || MOTHERBOARD == 36 || MOTHERBOARD == 77 || MOTHERBOARD == 67 || MOTHERBOARD == 68 #if IS_RAMPS || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
//////////////////FIX THIS////////////// //////////////////FIX THIS//////////////
...@@ -547,11 +546,11 @@ ...@@ -547,11 +546,11 @@
// #define RAMPS_V_1_0 // #define RAMPS_V_1_0
#if MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 35 || MOTHERBOARD == 36 || MOTHERBOARD == 77 || MOTHERBOARD == 67 || MOTHERBOARD == 68 #if (IS_RAMPS && !MB(RAMPS_OLD)) || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
#define LARGE_FLASH true #define LARGE_FLASH true
#if MOTHERBOARD == 77 #if MB(3DRAG)
#define ORIG_X_STEP_PIN 54 #define ORIG_X_STEP_PIN 54
#define ORIG_X_DIR_PIN 55 #define ORIG_X_DIR_PIN 55
#define ORIG_X_ENABLE_PIN 38 #define ORIG_X_ENABLE_PIN 38
...@@ -628,7 +627,7 @@ ...@@ -628,7 +627,7 @@
#define ORIG_E1_DIR_PIN 34 #define ORIG_E1_DIR_PIN 34
#define ORIG_E1_ENABLE_PIN 30 #define ORIG_E1_ENABLE_PIN 30
#if MOTHERBOARD == 34 //FMM added for Filament Extruder #if MB(RAMPS_13_EEB) //FMM added for Filament Extruder
#ifdef FILAMENT_SENSOR #ifdef FILAMENT_SENSOR
//define analog pin for the filament width sensor input //define analog pin for the filament width sensor input
//Use the RAMPS 1.4 Analog input 5 on the AUX2 connector //Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
...@@ -637,7 +636,7 @@ ...@@ -637,7 +636,7 @@
#endif #endif
#if MOTHERBOARD == 68 #if MB(AZTEEG_X3_PRO)
#define ORIG_E2_STEP_PIN 23 #define ORIG_E2_STEP_PIN 23
#define ORIG_E2_DIR_PIN 25 #define ORIG_E2_DIR_PIN 25
#define ORIG_E2_ENABLE_PIN 40 #define ORIG_E2_ENABLE_PIN 40
...@@ -656,17 +655,17 @@ ...@@ -656,17 +655,17 @@
#define LED_PIN 13 #define LED_PIN 13
#endif #endif
#if MOTHERBOARD == 33 || MOTHERBOARD == 35 || MOTHERBOARD == 67 || MOTHERBOARD == 68 #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
#define ORIG_FAN_PIN 9 // 9 (Sprinter config) #define ORIG_FAN_PIN 9 // 9 (Sprinter config)
#else #else
#define ORIG_FAN_PIN 4 // IO pin. Buffer needed #define ORIG_FAN_PIN 4 // IO pin. Buffer needed
#endif #endif
#if MOTHERBOARD == 77 || MOTHERBOARD == 36 #if MB(3DRAG) || MB(RAMPS_13_EEF)
#define ORIG_FAN_PIN 8 #define ORIG_FAN_PIN 8
#endif #endif
#if MOTHERBOARD == 35 #if MB(RAMPS_13_EFF)
#define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller #define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller
#endif #endif
...@@ -678,24 +677,24 @@ ...@@ -678,24 +677,24 @@
#define KILL_PIN -1 #define KILL_PIN -1
#endif #endif
#if MOTHERBOARD == 35 #if MB(RAMPS_13_EFF)
#define ORIG_HEATER_0_PIN 8 #define ORIG_HEATER_0_PIN 8
#else #else
#define ORIG_HEATER_0_PIN 10 // HOTEND 1 #define ORIG_HEATER_0_PIN 10 // HOTEND 1
#endif #endif
#if MOTHERBOARD == 33 || MOTHERBOARD == 67 #if MB(RAMPS_13_EFB) || MB(AZTEEG_X3)
#define ORIG_HEATER_1_PIN -1 #define ORIG_HEATER_1_PIN -1
#else #else
#define ORIG_HEATER_1_PIN 9 // HOTEND 2 (FAN On Sprinter) #define ORIG_HEATER_1_PIN 9 // HOTEND 2 (FAN On Sprinter)
#endif #endif
#if MOTHERBOARD == 77 #if MB(3DRAG)
#define ORIG_HEATER_0_PIN 10 #define ORIG_HEATER_0_PIN 10
#define ORIG_HEATER_1_PIN 12 #define ORIG_HEATER_1_PIN 12
#define ORIG_HEATER_2_PIN 6 #define ORIG_HEATER_2_PIN 6
#elif MOTHERBOARD == 68 #elif MB(AZTEEG_X3_PRO)
#define ORIG_HEATER_2_PIN 16 #define ORIG_HEATER_2_PIN 16
#define ORIG_HEATER_3_PIN 17 #define ORIG_HEATER_3_PIN 17
#define ORIG_HEATER_4_PIN 4 #define ORIG_HEATER_4_PIN 4
...@@ -708,7 +707,7 @@ ...@@ -708,7 +707,7 @@
#define ORIG_TEMP_0_PIN 13 // ANALOG NUMBERING #define ORIG_TEMP_0_PIN 13 // ANALOG NUMBERING
#define ORIG_TEMP_1_PIN 15 // ANALOG NUMBERING #define ORIG_TEMP_1_PIN 15 // ANALOG NUMBERING
#if MOTHERBOARD == 68 #if MB(AZTEEG_X3_PRO)
#define ORIG_TEMP_2_PIN 12 // ANALOG NUMBERING #define ORIG_TEMP_2_PIN 12 // ANALOG NUMBERING
#define ORIG_TEMP_3_PIN 11 // ANALOG NUMBERING #define ORIG_TEMP_3_PIN 11 // ANALOG NUMBERING
#define ORIG_TEMP_4_PIN 10 // ANALOG NUMBERING #define ORIG_TEMP_4_PIN 10 // ANALOG NUMBERING
...@@ -718,10 +717,10 @@ ...@@ -718,10 +717,10 @@
#define ORIG_TEMP_2_PIN -1 // ANALOG NUMBERING #define ORIG_TEMP_2_PIN -1 // ANALOG NUMBERING
#endif #endif
#if MOTHERBOARD == 35 || MOTHERBOARD == 36 #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
#define ORIG_HEATER_BED_PIN -1 // NO BED #define ORIG_HEATER_BED_PIN -1 // NO BED
#else #else
#if MOTHERBOARD == 77 #if MB(3DRAG)
#define ORIG_HEATER_BED_PIN 9 // BED #define ORIG_HEATER_BED_PIN 9 // BED
#else #else
#define ORIG_HEATER_BED_PIN 8 // BED #define ORIG_HEATER_BED_PIN 8 // BED
...@@ -746,12 +745,12 @@ ...@@ -746,12 +745,12 @@
#define SERVO3_PIN 4 #define SERVO3_PIN 4
#endif #endif
#if MOTHERBOARD == 68 #if MB(AZTEEG_X3_PRO)
#define BEEPER 33 #define BEEPER 33
#endif #endif
#ifdef TEMP_STAT_LEDS #ifdef TEMP_STAT_LEDS
#if MOTHERBOARD == 67 #if MB(AZTEEG_X3)
#define STAT_LED_RED 6 #define STAT_LED_RED 6
#define STAT_LED_BLUE 11 #define STAT_LED_BLUE 11
#endif #endif
...@@ -779,14 +778,14 @@ ...@@ -779,14 +778,14 @@
#define BTN_EN1 47 //reverse if the encoder turns the wrong way. #define BTN_EN1 47 //reverse if the encoder turns the wrong way.
#define BTN_EN2 43 #define BTN_EN2 43
#define BTN_ENC 32 #define BTN_ENC 32
#define SDSS 53 #define LCD_SDSS 53
#define SDCARDDETECT -1 #define SDCARDDETECT -1
#define KILL_PIN 41 #define KILL_PIN 41
#elif defined(LCD_I2C_VIKI) #elif defined(LCD_I2C_VIKI)
#define BTN_EN1 22 //reverse if the encoder turns the wrong way. #define BTN_EN1 22 //reverse if the encoder turns the wrong way.
#define BTN_EN2 7 #define BTN_EN2 7
#define BTN_ENC -1 #define BTN_ENC -1
#define SDSS 53 #define LCD_SDSS 53
#define SDCARDDETECT 49 #define SDCARDDETECT 49
#else #else
//arduino pin which triggers an piezzo beeper //arduino pin which triggers an piezzo beeper
...@@ -814,7 +813,7 @@ ...@@ -814,7 +813,7 @@
#endif #endif
#if MOTHERBOARD == 77 #if MB(3DRAG)
#define BEEPER -1 #define BEEPER -1
#define LCD_PINS_RS 27 #define LCD_PINS_RS 27
...@@ -850,7 +849,7 @@ ...@@ -850,7 +849,7 @@
#endif #endif
#endif //ULTRA_LCD #endif //ULTRA_LCD
#else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3) #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (BOARD_RAMPS_OLD)
#define ORIG_X_STEP_PIN 26 #define ORIG_X_STEP_PIN 26
#define ORIG_X_DIR_PIN 28 #define ORIG_X_DIR_PIN 28
...@@ -896,7 +895,7 @@ ...@@ -896,7 +895,7 @@
#define ORIG_TEMP_2_PIN -1 #define ORIG_TEMP_2_PIN -1
#define ORIG_TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! #define ORIG_TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#endif // MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 35 || MOTHERBOARD == 77 #endif // RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
// SPI for Max6675 Thermocouple // SPI for Max6675 Thermocouple
...@@ -910,13 +909,13 @@ ...@@ -910,13 +909,13 @@
#define MAX6675_SS 49 #define MAX6675_SS 49
#endif #endif
#endif //MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 35 || MOTHERBOARD == 77 #endif // RAMPS_OLD || RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
/**************************************************************************************** /****************************************************************************************
* Duemilanove w/ ATMega328P pin assignment * Duemilanove w/ ATMega328P pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 4 #if MB(DUEMILANOVE_328P)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega328P__ #ifndef __AVR_ATmega328P__
...@@ -964,7 +963,7 @@ ...@@ -964,7 +963,7 @@
* Elefu RA Board Pin Assignments * Elefu RA Board Pin Assignments
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 21 #if MB(ELEFU_3)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega2560__ #ifndef __AVR_ATmega2560__
...@@ -1082,14 +1081,14 @@ ...@@ -1082,14 +1081,14 @@
#endif //RA_LIGHTING #endif //RA_LIGHTING
#endif /* Ra Board */ #endif // ELEFU_3
/**************************************************************************************** /****************************************************************************************
* Gen6 pin assignment * Gen6 pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 5 || MOTHERBOARD == 51 #if MB(GEN6) || MB(GEN6_DELUXE)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega644P__
...@@ -1149,32 +1148,32 @@ ...@@ -1149,32 +1148,32 @@
#define TX_ENABLE_PIN 12 #define TX_ENABLE_PIN 12
#define RX_ENABLE_PIN 13 #define RX_ENABLE_PIN 13
#endif // GEN6 || GEN6_DELUXE
#endif
/**************************************************************************************** /****************************************************************************************
* Sanguinololu pin assignment * Sanguinololu pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 64 #if MB(STB_11)
#define STB #define STB
#endif #endif
#if MOTHERBOARD == 63 || MOTHERBOARD == 66 #if MB(MELZI) || MB(MELZI_1284)
#define MELZI #define MELZI
#endif #endif
#if MOTHERBOARD == 65 #if MB(AZTEEG_X1)
#define AZTEEG_X1 #define AZTEEG_X1
#endif #endif
#if MOTHERBOARD == 62 || MOTHERBOARD == 63 || MOTHERBOARD == 64 || MOTHERBOARD == 65 || MOTHERBOARD == 66 #if MB(SANGUINOLOLU_12) || MB(MELZI) || MB(STB_11) || MB(AZTEEG_X1) || MB(MELZI_1284)
#undef MOTHERBOARD #undef MOTHERBOARD
#define MOTHERBOARD 6 #define MOTHERBOARD BOARD_SANGUINOLOLU_11
#define SANGUINOLOLU_V_1_2 #define SANGUINOLOLU_V_1_2
#if defined(__AVR_ATmega1284P__) #if defined(__AVR_ATmega1284P__)
#define LARGE_FLASH true #define LARGE_FLASH true
#endif #endif
#endif #endif
#if MOTHERBOARD == 6
#if MB(SANGUINOLOLU_11)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega644P__
#ifndef __AVR_ATmega1284P__ #ifndef __AVR_ATmega1284P__
...@@ -1304,7 +1303,7 @@ ...@@ -1304,7 +1303,7 @@
#ifdef LCD_I2C_PANELOLU2 #ifdef LCD_I2C_PANELOLU2
#ifdef MELZI #ifdef MELZI
#define BTN_ENC 29 //the click switch #define BTN_ENC 29 //the click switch
#define SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board #define LCD_SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board
#else #else
#define BTN_ENC 30 //the click switch #define BTN_ENC 30 //the click switch
#endif #endif
...@@ -1338,15 +1337,16 @@ ...@@ -1338,15 +1337,16 @@
#define SDCARDDETECT -1 #define SDCARDDETECT -1
#endif //Makrpanel #endif //Makrpanel
#endif #endif // SANGUINOLOLU_11
#if MOTHERBOARD == 7
#define KNOWN_BOARD
/***************************************************************** /*****************************************************************
* Ultimaker pin assignment * Ultimaker pin assignment
******************************************************************/ ******************************************************************/
#if MB(ULTIMAKER)
#define KNOWN_BOARD
#ifndef __AVR_ATmega1280__ #ifndef __AVR_ATmega1280__
#ifndef __AVR_ATmega2560__ #ifndef __AVR_ATmega2560__
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
...@@ -1442,9 +1442,9 @@ ...@@ -1442,9 +1442,9 @@
#endif #endif
#endif //ULTRA_LCD #endif //ULTRA_LCD
#endif #endif // ULTIMAKER
#if MOTHERBOARD == 71 #if MB(ULTIMAKER_OLD)
#define KNOWN_BOARD #define KNOWN_BOARD
/***************************************************************** /*****************************************************************
* Ultimaker pin assignment (Old electronics) * Ultimaker pin assignment (Old electronics)
...@@ -1511,9 +1511,9 @@ ...@@ -1511,9 +1511,9 @@
#define LCD_PINS_D6 32 #define LCD_PINS_D6 32
#define LCD_PINS_D7 30 #define LCD_PINS_D7 30
#endif #endif // ULTIMAKER_OLD
#if MOTHERBOARD == 72 #if MB(ULTIMAIN_2)
#define KNOWN_BOARD #define KNOWN_BOARD
/***************************************************************** /*****************************************************************
* Ultiboard v2.0 pin assignment * Ultiboard v2.0 pin assignment
...@@ -1596,13 +1596,13 @@ ...@@ -1596,13 +1596,13 @@
#define SDCARDDETECT 39 #define SDCARDDETECT 39
#endif//MOTHERBOARD == 72 #endif // ULTIMAIN_2
/**************************************************************************************** /****************************************************************************************
* RUMBA pin assignment * RUMBA pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 80 #if MB(RUMBA)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega2560__ #ifndef __AVR_ATmega2560__
...@@ -1712,7 +1712,7 @@ ...@@ -1712,7 +1712,7 @@
#define BTN_EN2 12 #define BTN_EN2 12
#define BTN_ENC 43 #define BTN_ENC 43
#endif //MOTHERBOARD==80 #endif // RUMBA
/**************************************************************************************** /****************************************************************************************
...@@ -1721,7 +1721,7 @@ ...@@ -1721,7 +1721,7 @@
http://www.pjrc.com/teensy/teensyduino.html http://www.pjrc.com/teensy/teensyduino.html
* See http://reprap.org/wiki/Printrboard for more info * See http://reprap.org/wiki/Printrboard for more info
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 8 || MOTHERBOARD == 81 #if MB(TEENSYLU) || MB(PRINTRBOARD)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc. #define AT90USB 1286 // Disable MarlinSerial etc.
...@@ -1759,7 +1759,7 @@ ...@@ -1759,7 +1759,7 @@
// You may need to change ORIG_FAN_PIN to 16 because Marlin isn't using fastio.h // You may need to change ORIG_FAN_PIN to 16 because Marlin isn't using fastio.h
// for the fan and Teensyduino uses a different pin mapping. // for the fan and Teensyduino uses a different pin mapping.
#if MOTHERBOARD == 8 // Teensylu #if MB(TEENSYLU) // Teensylu
#define X_STOP_PIN 13 #define X_STOP_PIN 13
#define Y_STOP_PIN 14 #define Y_STOP_PIN 14
#define Z_STOP_PIN 15 #define Z_STOP_PIN 15
...@@ -1793,14 +1793,14 @@ ...@@ -1793,14 +1793,14 @@
#define MOSI_PIN 10 #define MOSI_PIN 10
#endif #endif
#endif // MOTHERBOARD == 8 (Teensylu) or 81 (Printrboard) #endif // TEENSYLU || PRINTRBOARD
/**************************************************************************************** /****************************************************************************************
* Brainwave 1.0 pin assignments (AT90USB646) * Brainwave 1.0 pin assignments (AT90USB646)
* Requires hardware bundle for Arduino: * Requires hardware bundle for Arduino:
https://github.com/unrepentantgeek/brainwave-arduino https://github.com/unrepentantgeek/brainwave-arduino
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 82 #if MB(BRAINWAVE)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define AT90USB 646 // Disable MarlinSerial etc. #define AT90USB 646 // Disable MarlinSerial etc.
...@@ -1856,7 +1856,7 @@ ...@@ -1856,7 +1856,7 @@
#define MOSI_PIN 10 #define MOSI_PIN 10
#endif #endif
#endif // MOTHERBOARD == 82 (Brainwave) #endif // BRAINWAVE
// //
// SAV Mk-I // SAV Mk-I
...@@ -1867,7 +1867,7 @@ ...@@ -1867,7 +1867,7 @@
http://www.pjrc.com/teensy/teensyduino.html http://www.pjrc.com/teensy/teensyduino.html
RepRap Clone Wars project board. RepRap Clone Wars project board.
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 83 // SAV Mk-I #if MB(SAV_MKI) // SAV Mk-I
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc. #define AT90USB 1286 // Disable MarlinSerial etc.
...@@ -1941,7 +1941,7 @@ ...@@ -1941,7 +1941,7 @@
#define SR_DATA_PIN 0 #define SR_DATA_PIN 0
#define SR_CLK_PIN 1 #define SR_CLK_PIN 1
#endif // MOTHERBOARD == 83 #endif // SAV_MKI
/**************************************************************************************** /****************************************************************************************
* Teensy++ 2.0 Breadboard pin assignments (AT90USB1286) * Teensy++ 2.0 Breadboard pin assignments (AT90USB1286)
...@@ -1951,7 +1951,7 @@ ...@@ -1951,7 +1951,7 @@
* CLI build: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make * CLI build: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 84 #if MB(TEENSY2)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc. #define AT90USB 1286 // Disable MarlinSerial etc.
...@@ -2062,15 +2062,15 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2062,15 +2062,15 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define BTN_ENC 40 #define BTN_ENC 40
#endif #endif
#endif // MOTHERBOARD == 84 (Teensy++2.0 Breadboard) #endif // TEENSY2
/**************************************************************************************** /****************************************************************************************
* Gen3+ pin assignment * Gen3+ pin assignment
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 9 #if MB(GEN3_PLUS)
#define MOTHERBOARD 6 /*TODO: Figure out, Why is this done?*/ #define MOTHERBOARD BOARD_SANGUINOLOLU_11 /*TODO: Figure out, Why is this done?*/
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega644P__
#ifndef __AVR_ATmega1284P__ #ifndef __AVR_ATmega1284P__
...@@ -2116,13 +2116,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2116,13 +2116,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define SDSS 4 #define SDSS 4
#define ORIG_HEATER_2_PIN -1 #define ORIG_HEATER_2_PIN -1
#endif #endif // GEN3_PLUS
/**************************************************************************************** /****************************************************************************************
* Gen3 Monolithic Electronics * Gen3 Monolithic Electronics
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 22 #if MB(GEN3_MONOLITHIC)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega644P__ #ifndef __AVR_ATmega644P__
...@@ -2183,7 +2183,7 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2183,7 +2183,7 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define ORIG_TEMP_2_PIN -1 #define ORIG_TEMP_2_PIN -1
#define ORIG_HEATER_2_PIN -1 #define ORIG_HEATER_2_PIN -1
#endif #endif // GEN3_MONOLITHIC
/**************************************************************************************** /****************************************************************************************
* Open Motion controller with enable based extruders * Open Motion controller with enable based extruders
...@@ -2214,7 +2214,7 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2214,7 +2214,7 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
* +--------+ * +--------+
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 90 //Alpha OMCA board #if MB(OMCA_A) //Alpha OMCA board
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega644__ #ifndef __AVR_ATmega644__
...@@ -2266,9 +2266,9 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2266,9 +2266,9 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define ORIG_TEMP_BED_PIN -1 // 1,2 or I2C #define ORIG_TEMP_BED_PIN -1 // 1,2 or I2C
/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */ /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
#endif #endif // OMCA_A
#if MOTHERBOARD == 91 // Final OMCA board -- REF http://sanguino.cc/hardware #if MB(OMCA) // Final OMCA board -- REF http://sanguino.cc/hardware
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
...@@ -2332,14 +2332,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2332,14 +2332,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define I2C_SCL 16 #define I2C_SCL 16
#define I2C_SDA 17 #define I2C_SDA 17
#endif #endif // OMCA
#if MOTHERBOARD == 301
#define KNOWN_BOARD
/***************************************************************** /*****************************************************************
* Rambo Pin Assignments * Rambo Pin Assignments
******************************************************************/ ******************************************************************/
#if MB(RAMBO)
#define KNOWN_BOARD
#ifndef __AVR_ATmega2560__ #ifndef __AVR_ATmega2560__
#error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
#endif #endif
...@@ -2478,13 +2477,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2478,13 +2477,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define FILWIDTH_PIN 3 #define FILWIDTH_PIN 3
#endif //FILAMENT_SENSOR #endif //FILAMENT_SENSOR
#endif #endif // RAMBO
/**************************************************************************************** /****************************************************************************************
* MegaTronics * MegaTronics
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 70 #if MB(MEGATRONICS)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
...@@ -2580,13 +2579,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2580,13 +2579,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#endif #endif
#endif //ULTRA_LCD #endif //ULTRA_LCD
#endif #endif // MEGATRONICS
/**************************************************************************************** /****************************************************************************************
* MegaTronics v2.0 * MegaTronics v2.0
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 701 #if MB(MEGATRONICS_2)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
...@@ -2695,14 +2694,14 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2695,14 +2694,14 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define encrot2 3 #define encrot2 3
#define encrot3 1 #define encrot3 1
#endif #endif // MEGATRONICS_2
/**************************************************************************************** /****************************************************************************************
* MegaTronics v3.0 * MegaTronics v3.0
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 703 #if MB(MEGATRONICS_3)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
...@@ -2822,14 +2821,14 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2822,14 +2821,14 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define encrot2 3 #define encrot2 3
#define encrot3 1 #define encrot3 1
#endif #endif // MEGATRONICS_3
/**************************************************************************************** /****************************************************************************************
* Minitronics v1.0 / v1.1 * Minitronics v1.0
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 702 #if MB(MEGATRONICS_1)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
...@@ -2922,13 +2921,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -2922,13 +2921,13 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define encrot2 3 #define encrot2 3
#define encrot3 1 #define encrot3 1
#endif #endif // MEGATRONICS_1
/**************************************************************************************** /****************************************************************************************
* Cheaptronic v1.0 * Cheaptronic v1.0
* *
****************************************************************************************/ ****************************************************************************************/
#if MOTHERBOARD == 2 #if MB(CHEAPTRONIC)
#define KNOWN_BOARD 1 #define KNOWN_BOARD 1
#ifndef __AVR_ATmega2560__ #ifndef __AVR_ATmega2560__
...@@ -3023,7 +3022,8 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a ...@@ -3023,7 +3022,8 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define encrot2 3 #define encrot2 3
#define encrot3 1 #define encrot3 1
#endif #endif // CHEAPTRONIC
#ifndef ORIG_HEATER_3_PIN #ifndef ORIG_HEATER_3_PIN
#define ORIG_HEATER_3_PIN -1 #define ORIG_HEATER_3_PIN -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment