#ifndef CONFIGURATION_H #define CONFIGURATION_H #define MY_NAME '0' // Two byte string representing the name of this device #define RS485_MASTER 0 // We are a slave #define MOTHERBOARD 2 // Temperature measurement // Uncomment ONE of the next three #define USE_THERMISTOR //#define AD595_THERMOCOUPLE //#define MAX6675_THERMOCOUPLE // Comment out the next line to give a bang-bang thermostat // Leave it for PID temperature control #define PID_CONTROL //****************************************************************************************************** // Divide by this to correct for the fact that we have // messed up the timer clock #define MILLI_CORRECTION 64 // The temperature routines get called each time the main loop // has gone round this many times #define SLOW_CLOCK 5000 // Default pwm for the stepper motor #define STEP_PWM 140 // Pin defintion section. This is for the RepRap Extruder Controler V2.2 //our RS485 pins #define RX_ENABLE_PIN 4 #define TX_ENABLE_PIN 16 // Pins to direct-drive the extruder stepper #define E_STEP_PIN 10 #define E_DIR_PIN 9 #ifdef MAX6675_THERMOCOUPLE // I2C pins for the MAX 6675 temperature chip #define SO 18 // MISO #define SCK 19 // Serial Clock #define TC_0 17 // CS Pin of MAX6607 #else #define TEMP_PIN 3 #endif // Control pins for the A3949 chips #define H1D 7 #define H1E 5 #define H2D 8 #define H2E 6 // Analogue read of this pin gets the potentiometer setting #define POT 0 // MOSFET drivers #define OUTPUT_A 15 #define OUTPUT_B 11 #define OUTPUT_C 12 #define DEBUG_PIN 13 // The LED blink function extern void blink(bool on); #endif