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+
13#include " OpenAstroTracker.hpp"
24#include " a_inits.hpp"
35#include " b_setup.hpp"
1315#include " c78_menuINFO.hpp"
1416#include " c_buttons.hpp"
1517#include " f_serial.hpp"
16- #include " g_bluetooth.hpp"
18+ #include " g_bluetooth.hpp"
Original file line number Diff line number Diff line change 6161// Arduino Uno
6262// /////////////////////////////////////////////////////////////////////////
6363#ifdef __AVR_ATmega328P__ // normal Arduino Mapping
64+ #if RA_Stepper_TYPE == 0 // 28BYJ
6465// RA Motor pins
6566 #ifdef INVERT_RA_DIR
6667 #define RAmotorPin1 12 // IN1 auf ULN2003 driver 1
7374 #define RAmotorPin2 11 // IN3 auf ULN2003 driver 1
7475 #define RAmotorPin4 12 // IN4 auf ULN2003 driver 1
7576 #endif
77+ #endif
78+ #if RA_Stepper_TYPE == 1 // NEMA
79+ #define RAmotorPin1 11
80+ #define RAmotorPin2 12
81+ #endif
7682
7783// DEC Motor pins
84+ #if DEC_Stepper_TYPE == 0 // 28BYJ
7885 #ifdef INVERT_DEC_DIR
7986 #define DECmotorPin1 18 // IN1 auf ULN2003 driver 2
8087 #define DECmotorPin2 16 // IN2 auf ULN2003 driver 2
8794 #define DECmotorPin4 18 // IN4 auf ULN2003 driver 2
8895 #endif
8996#endif
97+ #if DEC_Stepper_TYPE == 1 // NEMA
98+ #define DECmotorPin1 16
99+ #define DECmotorPin2 17
100+ #endif
101+
102+ #endif
90103
91104// /////////////////////////////////////////////////////////////////////////
92105// Arduino Mega
You can’t perform that action at this time.
0 commit comments