-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwoAxis.h
More file actions
84 lines (54 loc) · 2.35 KB
/
TwoAxis.h
File metadata and controls
84 lines (54 loc) · 2.35 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// all # define options should be defined here, this keeps them together in a nice way
#define VERSION_ID F( "TwoAxis Ver1 2017 11 19.00" )
// !! fix next to right name
#ifndef ddclock17_h
#define ddclock17_h
// #include "WProgram.h"
// # https://github.com/adafruit/DHT-sensor-library/issues/1 changed 2015 Feb 21 this include is in several of the files
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
// redefinition: in many cases no reason not to go faster, use a standard rate
// including 19200 .......
//#define BAUD_RATE 9600
#define BAUD_RATE 19200
//#define BAUD_RATE 38400
// --------------- configure hardware setup -------------
// #define STEPPER_DRIVE_TYPE AccelStepper::FULL4WIRE
#define STEPPER_DRIVE_TYPE AccelStepper::HALF4WIRE
//// 1 from make perms
//#define STEPPER1_PIN_A 5
//#define STEPPER1_PIN_B 6
//#define STEPPER1_PIN_D 7
//#define STEPPER1_PIN_C 8
// 2 from make perms
#define STEPPER1_PIN_A 5
#define STEPPER1_PIN_C 6
#define STEPPER1_PIN_B 7
#define STEPPER1_PIN_D 8
// =================== stepper 2 y altitude =======================
// 2 from make perms
#define STEPPER2_PIN_A 9
#define STEPPER2_PIN_C 10
#define STEPPER2_PIN_B 11
#define STEPPER2_PIN_D 12
// update to match array below -- consider multiple versions commented out
#define MAX_TARGET_IX 12
// 0x y 1x y 2x y 3x y 4x y 5x y 6x 6y
int target_coords[] = { 12, 12, 24, 24, 36, 36, 50, 50, 150, 150, 200, 200, 250, 250,
12, 12, 24, 24, 36, 36, 50, 50, 150, 150, 200, 200, 250, 250 };
// use for blinker
//#define LIGHT_PIN 3
// =============== LCD if used ===================
// old names
#define LCD_RS 13 // register select, pin to digital pin 12
#define LCD_ENABLE 12 // pin to digital pin 11
#define LCD_D4 8 // pin to digital pin 5
#define LCD_D5 9 // pin to digital pin 4
#define LCD_D6 10 // pin to digital pin 3
#define LCD_D7 11 // pin to digital pin 2
// ----------------------------------
#endif // from the top
// ====================== eof ========================