Minitronics - invertire ingressi termistori [Risolto] July 12, 2014 01:13PM |
Registered: 12 years ago Posts: 4,555 |
/**************************************************************************************** * Minitronics v1.0 / v1.1 * ****************************************************************************************/ #if MOTHERBOARD == 702 #define KNOWN_BOARD 1 #ifndef __AVR_ATmega1281__ #error Oops! Make sure you have 'Minitronics ' selected from the 'Tools -> Boards' menu. #endif #define LARGE_FLASH true #define X_STEP_PIN 48 #define X_DIR_PIN 47 #define X_ENABLE_PIN 49 #define X_MIN_PIN 5 #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable. #define Y_STEP_PIN 39 // A6 #define Y_DIR_PIN 40 // A0 #define Y_ENABLE_PIN 38 #define Y_MIN_PIN 2 #define Y_MAX_PIN -1 //15 #define Z_STEP_PIN 42 // A2 #define Z_DIR_PIN 43 // A6 #define Z_ENABLE_PIN 41 // A1 #define Z_MIN_PIN 6 #define Z_MAX_PIN -1 #define E0_STEP_PIN 45 #define E0_DIR_PIN 44 #define E0_ENABLE_PIN 27 #define E1_STEP_PIN 36 #define E1_DIR_PIN 35 #define E1_ENABLE_PIN 37 #define E2_STEP_PIN -1 #define E2_DIR_PIN -1 #define E2_ENABLE_PIN -1 #define SDPOWER -1 #define SDSS 16 #define LED_PIN 46 #define FAN_PIN 9 #define FAN2_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define HEATER_0_PIN 7 // EXTRUDER 1 #define HEATER_1_PIN 8 // EXTRUDER 2 #define HEATER_2_PIN 9 // thermo couple #if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 5 // ANALOG NUMBERING #else #define TEMP_0_PIN 7 // ANALOG NUMBERING #endif #define TEMP_1_PIN 6 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 3 // BED 3 #define TEMP_BED_PIN 6 // ANALOG NUMBERING
Re: Minitronics - invertire ingressi termistori July 12, 2014 01:36PM |
Registered: 10 years ago Posts: 313 |
#if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 5 // ANALOG NUMBERING #else #define TEMP_0_PIN 7 // ANALOG NUMBERING #endif #define TEMP_1_PIN 6 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 3 // BED 3 #define TEMP_BED_PIN 6 // ANALOG NUMBERING
se la stringa TEMP_SENSOR_0 è uguale a -1 assegnare TEMP_0_PIN a 5 altrimenti assegnare TEMP_0_PIN a 7 fine
Re: Minitronics - invertire ingressi termistori July 12, 2014 02:32PM |
Registered: 12 years ago Posts: 4,555 |
Re: Minitronics - invertire ingressi termistori July 12, 2014 05:28PM |
Registered: 10 years ago Posts: 6,409 |
#if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 5 // ANALOG NUMBERING #else #define TEMP_0_PIN 7 // ANALOG NUMBERING #endif #define TEMP_1_PIN 6 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING #define HEATER_BED_PIN 3 // BED 3 #define TEMP_BED_PIN 6 // ANALOG NUMBERING
Re: Minitronics - invertire ingressi termistori July 15, 2014 04:40AM |
Registered: 12 years ago Posts: 4,555 |
#define TEMP_1_PIN 7 // ANALOG NUMBERING