-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMachineDefs.h
43 lines (33 loc) · 900 Bytes
/
MachineDefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#define SERIAL_DEBUG
#ifdef SERIAL_DEBUG
#define SER_PRINT(X) Serial.print((X))
#define SER_PRINT2(X,Y) Serial.print((X),(Y))
#define SER_PRINTLN(X) Serial.println((X))
#define SER_PRINTLN2(X,Y) Serial.println((X),(Y))
#else
#define SER_PRINT(X)
#define SER_PRINT2(X,Y)
#define SER_PRINTLN(X)
#define SER_PRINTLN2(X,Y)
#endif
//define this if plotter has a battery voltage feedback connected
//#define HAS_BATTERY_MEASUREMENT
//which remote control to use
//#define PIONEER_DVD_REMOTE
#define NONAME_WHITE_REMOTE
//servo pin
#define SERVO_PIN A5
//servo values for pen up/down
#define PEN_UP 80
#define PEN_DOWN 60
//IR-receiver pin
#define RECV_PIN A0
//stepper motor pins
#define LEFT_STEP_PIN_1 6
#define LEFT_STEP_PIN_2 7
#define LEFT_STEP_PIN_3 8
#define LEFT_STEP_PIN_4 9
#define RIGHT_STEP_PIN_1 2
#define RIGHT_STEP_PIN_2 3
#define RIGHT_STEP_PIN_3 4
#define RIGHT_STEP_PIN_4 5