Merge pull request #12 from cakeller98/RAMPS_Versions

Added a RAMPS version #define in pins.h
This commit is contained in:
kliment 2011-05-11 05:25:37 -07:00
commit 4663709f47

View file

@ -232,24 +232,32 @@
#define SDSS 53
#define LED_PIN 13
//#define FAN_PIN 11 // UNCOMMENT THIS LINE FOR V1.0
#define FAN_PIN 9 // THIS LINE FOR V1.1
#define PS_ON_PIN -1
#define KILL_PIN -1
//#define HEATER_0_PIN 12 // UNCOMMENT THIS LINE FOR V1.0
#define HEATER_0_PIN 10 // THIS LINE FOR V1.1
#define HEATER_1_PIN 8 // THIS LINE FOR V1.1
// uncomment the following line for RAMPS V1.0
// #define RAMPS_V_1_0
#ifdef RAMPS_V_1_0
#define HEATER_0_PIN 12 // RAMPS 1.0
#define HEATER_1_PIN -1 // RAMPS 1.0
#define FAN_PIN 11 // RAMPS 1.0
#else // RAMPS_V_1_1 as default
#define HEATER_0_PIN 10 // RAMPS 1.1
#define HEATER_1_PIN 8 // RAMPS 1.1
#define FAN_PIN 9 // RAMPS 1.1
#endif
#define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define TEMP_1_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
// SPI for Max6675 Thermocouple
#ifndef SDSUPPORT
// SPI for Max6675 Thermocouple (these pins are defined in the SD library if building with SD support).
#define SCK_PIN 52
// these pins are defined in the SD library if building with SD support #define SCK_PIN 52
#define MISO_PIN 50
#define MOSI_PIN 51
#define MAX6675_SS 53