78 lines
1.3 KiB
C
78 lines
1.3 KiB
C
|
#ifndef CONFIG_H_INCLUDED
|
||
|
#define CONFIG_H_INCLUDED
|
||
|
|
||
|
#include <String.h>
|
||
|
|
||
|
//firmware
|
||
|
#define FIRMWARE "PlottWareFirmware v0.0.1"
|
||
|
|
||
|
//name of printer
|
||
|
#define NAME "PlottWare Alpha Prototype"
|
||
|
|
||
|
//size of input buffer
|
||
|
#define MAX_MESSAGE_SIZE 1024
|
||
|
|
||
|
//step per mm
|
||
|
#define STEPX 50
|
||
|
#define STEPY 50
|
||
|
|
||
|
//steps per revolution
|
||
|
#define STEPX_REVOLUTION 200
|
||
|
#define STEPY_REVOLUTION 200
|
||
|
|
||
|
#define STEPPERX_PIN1 8
|
||
|
#define STEPPERX_PIN2 9
|
||
|
#define STEPPERX_PIN3 10
|
||
|
#define STEPPERX_PIN4 11
|
||
|
|
||
|
#define STEPPERY_PIN1 2
|
||
|
#define STEPPERY_PIN2 3
|
||
|
#define STEPPERY_PIN3 4
|
||
|
#define STEPPERY_PIN4 5
|
||
|
|
||
|
#define STEPPERX_REVERSE false
|
||
|
#define STEPPERY_REVERSE false
|
||
|
|
||
|
//steps to increment once
|
||
|
#define STEP_INCREMENT 1
|
||
|
|
||
|
//delay in ms to wait for stepping
|
||
|
#define STEP_DELAY 0
|
||
|
|
||
|
//cruise speeds
|
||
|
#define SPEED_NORMAL 50
|
||
|
#define SPEED_FAST 150
|
||
|
|
||
|
//in mm, if no limit, -1
|
||
|
#define MAX_X 20
|
||
|
#define MAX_Y -1
|
||
|
|
||
|
//pencount
|
||
|
#define PENCOUNT 3
|
||
|
|
||
|
//pens
|
||
|
String pens[PENCOUNT+1];
|
||
|
void penSetup(){
|
||
|
//pens[1]="Yellow";
|
||
|
pens[1]="Pen1";
|
||
|
pens[2]="Pen2";
|
||
|
pens[3]="Pen3";
|
||
|
}
|
||
|
|
||
|
//pin of pens
|
||
|
int pen_pins[PENCOUNT+1];
|
||
|
void penPinsSetup(){
|
||
|
//pen_pins[1]=10;
|
||
|
pen_pins[1]=6;
|
||
|
pen_pins[2]=7;
|
||
|
pen_pins[3]=12;
|
||
|
}
|
||
|
|
||
|
//homing
|
||
|
#define XHOME false
|
||
|
#define XHOME_PIN 10
|
||
|
#define YHOME false
|
||
|
#define YHOME_PIN 0
|
||
|
|
||
|
#endif // CONFIG_H_INCLUDED
|