diff options
author | kliment <kliment.yanev@gmail.com> | 2011-04-29 13:43:32 -0700 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-04-29 13:43:32 -0700 |
commit | 43f160392216599a09c3265e9d2c8524e8c6c6ba (patch) | |
tree | 10c2068e6633f0901c26d25d466acaa269a57b58 /Tonokip_Firmware | |
parent | 6adcd70cc9e9f618fbe2274ed85c61cea8aee2e4 (diff) | |
parent | 40249d192f60818db39abdcd8f0e66e49d466d3a (diff) |
Merged pull request #2 from tommycheng/master.
Adding support for Sanguinololu v1.0
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 1 | ||||
-rw-r--r-- | Tonokip_Firmware/configuration.h | 2 | ||||
-rw-r--r-- | Tonokip_Firmware/pins.h | 43 |
3 files changed, 45 insertions, 1 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index bb744db..89f8ff7 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -210,6 +210,7 @@ void setup() if(E_ENABLE_PIN > -1) pinMode(E_ENABLE_PIN,OUTPUT); if(HEATER_0_PIN > -1) pinMode(HEATER_0_PIN,OUTPUT); + if(HEATER_1_PIN > -1) pinMode(HEATER_1_PIN,OUTPUT); #ifdef HEATER_USES_MAX6675 digitalWrite(SCK_PIN,0); diff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h index aba5176..b8e477c 100644 --- a/Tonokip_Firmware/configuration.h +++ b/Tonokip_Firmware/configuration.h @@ -3,7 +3,7 @@ // NO RS485/EXTRUDER CONTROLLER SUPPORT // PLEASE VERIFY PIN ASSIGNMENTS FOR YOUR CONFIGURATION!!!!!!! -#define MOTHERBOARD 3 // ATMEGA168 = 0, SANGUINO = 1, MOTHERBOARD = 2, MEGA/RAMPS = 3, ATMEGA328 = 4, Gen6 = 5 +#define MOTHERBOARD 3 // ATMEGA168 = 0, SANGUINO = 1, MOTHERBOARD = 2, MEGA/RAMPS = 3, ATMEGA328 = 4, Gen6 = 5, Sanguinololu = 6 //Comment out to disable SD support #define SDSUPPORT 1 diff --git a/Tonokip_Firmware/pins.h b/Tonokip_Firmware/pins.h index eb305cb..282961f 100644 --- a/Tonokip_Firmware/pins.h +++ b/Tonokip_Firmware/pins.h @@ -358,6 +358,49 @@ #define RX_ENABLE_PIN 13 +/**************************************************************************************** +* Sanguinololu pin assignment +* +****************************************************************************************/ +#elif MOTHERBOARD == 6 +#ifndef __AVR_ATmega644P__ +#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. +#endif + +#define X_STEP_PIN 15 +#define X_DIR_PIN 21 +#define X_ENABLE_PIN -1 +#define X_MIN_PIN 18 +#define X_MAX_PIN -2 //2 + +#define Y_STEP_PIN 22 +#define Y_DIR_PIN 23 +#define Y_ENABLE_PIN -1 +#define Y_MIN_PIN 19 +#define Y_MAX_PIN -1 //17 + +#define Z_STEP_PIN 3 +#define Z_DIR_PIN 2 +#define Z_ENABLE_PIN -1 +#define Z_MIN_PIN 20 +#define Z_MAX_PIN -1 //19 + +#define E_STEP_PIN 1 +#define E_DIR_PIN 0 +#define E_ENABLE_PIN -1 + +#define LED_PIN -1 + +#define FAN_PIN -1 // THIS LINE FOR V1.0 + +#define PS_ON_PIN -1 +#define KILL_PIN -1 + +#define HEATER_0_PIN 13 // THIS LINE FOR V1.0 (extruder) +#define HEATER_1_PIN 14 // THIS LINE FOR V1.0 (bed) + +#define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder) +#define TEMP_1_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed) #else |