Tidy up config.h.dist a bit.

This commit is contained in:
Markus Hitter 2010-10-07 20:44:20 +02:00
parent 4bddf3452f
commit da5194a54e
1 changed files with 34 additions and 25 deletions

View File

@ -1,40 +1,45 @@
#ifndef _CONFIG_H #ifndef _CONFIG_H
#define _CONFIG_H #define _CONFIG_H
// -------------------------------------------------------------------------- /*
// values reflecting the gearing of your machine Values reflecting the gearing of your machine.
// all numbers are integers, so no decimals, please :-) All numbers are integers, so no decimals, please :-)
*/
// calculate these values appropriate for your machine // calculate these values appropriate for your machine
#define STEPS_PER_MM_X 320 // for threaded rods, this is (steps motor per turn) / (pitch of the thread)
#define STEPS_PER_MM_Y 320 // for belts, this is (steps per motor turn) / (number of gear teeth) / (belt module)
#define STEPS_PER_MM_Z 320 // half-stepping doubles the number, quarter stepping requires * 4, etc.
#define STEPS_PER_MM_X 320
#define STEPS_PER_MM_Y 320
#define STEPS_PER_MM_Z 320
// http://blog.arcol.hu/?p=157 may help with this next one // http://blog.arcol.hu/?p=157 may help with this next one
#define STEPS_PER_MM_E 320 #define STEPS_PER_MM_E 320
// this is how many steps to suck back the filament by when we stop /*
#define E_STARTSTOP_STEPS 20 Values depending on the capabilities of your stepper motors and other mechanics.
All numbers are integers, no decimals allowed.
// -------------------------------------------------------------------------- */
// values depending on the capabilities of your stepper motors and other mechanics
// again, all numbers are integers
// used for G0 rapid moves and as a cap for all other feedrates // used for G0 rapid moves and as a cap for all other feedrates
#define MAXIMUM_FEEDRATE_X 200 #define MAXIMUM_FEEDRATE_X 200
#define MAXIMUM_FEEDRATE_Y 200 #define MAXIMUM_FEEDRATE_Y 200
#define MAXIMUM_FEEDRATE_Z 200 #define MAXIMUM_FEEDRATE_Z 100
#define MAXIMUM_FEEDRATE_E 200 #define MAXIMUM_FEEDRATE_E 200
// used when searching endstops and similar // used when searching endstops and as default feedrate
#define SEARCH_FEEDRATE_X 50 #define SEARCH_FEEDRATE_X 50
#define SEARCH_FEEDRATE_Y 50 #define SEARCH_FEEDRATE_Y 50
#define SEARCH_FEEDRATE_Z 50 #define SEARCH_FEEDRATE_Z 50
#define SEARCH_FEEDRATE_E 50 #define SEARCH_FEEDRATE_E 50
// extruder settings // extruder settings
#define TEMP_HYSTERESIS 20 #define TEMP_HYSTERESIS 20
#define TEMP_RESIDENCY_TIME 60 #define TEMP_RESIDENCY_TIME 60
// this is how many steps to suck back the filament by when we stop
#define E_STARTSTOP_STEPS 20
/* /*
acceleration, reprap style. acceleration, reprap style.
@ -71,7 +76,7 @@
#define ANALOG_MASK MASK(TEMP_PIN_CHANNEL) #define ANALOG_MASK MASK(TEMP_PIN_CHANNEL)
/* /*
firmware build options Firmware build options
*/ */
// this option makes the step interrupt interruptible. // this option makes the step interrupt interruptible.
@ -110,6 +115,10 @@ firmware build options
/* /*
Machine Pin Definitions Machine Pin Definitions
- make sure to avoid duplicate usage of a pin
- comment out pins not in use, as this drops the corresponding code and makes operations faster
*/ */
#include "arduino.h" #include "arduino.h"