Skip to content

Commit 96e410f

Browse files
author
OpenAstroTech
committed
add some small things
1 parent bdcc269 commit 96e410f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Use OpenAstroTracker.hpp and Globals.hpp for configuration!
2+
13
#include "OpenAstroTracker.hpp"
24
#include "a_inits.hpp"
35
#include "b_setup.hpp"
@@ -13,4 +15,4 @@
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"

Software/Arduino code/OpenAstroTracker/a_inits.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
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
@@ -73,8 +74,14 @@
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
@@ -87,6 +94,12 @@
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

0 commit comments

Comments
 (0)