File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Software/Arduino code/OpenAstroTracker Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Use OpenAstroTracker.hpp and Globals.hpp for configuration!
2
+
1
3
#include " OpenAstroTracker.hpp"
2
4
#include " a_inits.hpp"
3
5
#include " b_setup.hpp"
13
15
#include " c78_menuINFO.hpp"
14
16
#include " c_buttons.hpp"
15
17
#include " f_serial.hpp"
16
- #include " g_bluetooth.hpp"
18
+ #include " g_bluetooth.hpp"
Original file line number Diff line number Diff line change 61
61
// Arduino Uno
62
62
// /////////////////////////////////////////////////////////////////////////
63
63
#ifdef __AVR_ATmega328P__ // normal Arduino Mapping
64
+ #if RA_Stepper_TYPE == 0 // 28BYJ
64
65
// RA Motor pins
65
66
#ifdef INVERT_RA_DIR
66
67
#define RAmotorPin1 12 // IN1 auf ULN2003 driver 1
73
74
#define RAmotorPin2 11 // IN3 auf ULN2003 driver 1
74
75
#define RAmotorPin4 12 // IN4 auf ULN2003 driver 1
75
76
#endif
77
+ #endif
78
+ #if RA_Stepper_TYPE == 1 // NEMA
79
+ #define RAmotorPin1 11
80
+ #define RAmotorPin2 12
81
+ #endif
76
82
77
83
// DEC Motor pins
84
+ #if DEC_Stepper_TYPE == 0 // 28BYJ
78
85
#ifdef INVERT_DEC_DIR
79
86
#define DECmotorPin1 18 // IN1 auf ULN2003 driver 2
80
87
#define DECmotorPin2 16 // IN2 auf ULN2003 driver 2
87
94
#define DECmotorPin4 18 // IN4 auf ULN2003 driver 2
88
95
#endif
89
96
#endif
97
+ #if DEC_Stepper_TYPE == 1 // NEMA
98
+ #define DECmotorPin1 16
99
+ #define DECmotorPin2 17
100
+ #endif
101
+
102
+ #endif
90
103
91
104
// /////////////////////////////////////////////////////////////////////////
92
105
// Arduino Mega
You can’t perform that action at this time.
0 commit comments