Skip to content

Commit

Permalink
add some small things
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenAstroTech committed Jun 17, 2020
1 parent bdcc269 commit 96e410f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Software/Arduino code/OpenAstroTracker/OpenAstroTracker.ino
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Use OpenAstroTracker.hpp and Globals.hpp for configuration!

#include "OpenAstroTracker.hpp"
#include "a_inits.hpp"
#include "b_setup.hpp"
Expand All @@ -13,4 +15,4 @@
#include "c78_menuINFO.hpp"
#include "c_buttons.hpp"
#include "f_serial.hpp"
#include "g_bluetooth.hpp"
#include "g_bluetooth.hpp"
13 changes: 13 additions & 0 deletions Software/Arduino code/OpenAstroTracker/a_inits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
// Arduino Uno
///////////////////////////////////////////////////////////////////////////
#ifdef __AVR_ATmega328P__ // normal Arduino Mapping
#if RA_Stepper_TYPE == 0 // 28BYJ
// RA Motor pins
#ifdef INVERT_RA_DIR
#define RAmotorPin1 12 // IN1 auf ULN2003 driver 1
Expand All @@ -73,8 +74,14 @@
#define RAmotorPin2 11 // IN3 auf ULN2003 driver 1
#define RAmotorPin4 12 // IN4 auf ULN2003 driver 1
#endif
#endif
#if RA_Stepper_TYPE == 1 // NEMA
#define RAmotorPin1 11
#define RAmotorPin2 12
#endif

// DEC Motor pins
#if DEC_Stepper_TYPE == 0 // 28BYJ
#ifdef INVERT_DEC_DIR
#define DECmotorPin1 18 // IN1 auf ULN2003 driver 2
#define DECmotorPin2 16 // IN2 auf ULN2003 driver 2
Expand All @@ -87,6 +94,12 @@
#define DECmotorPin4 18 // IN4 auf ULN2003 driver 2
#endif
#endif
#if DEC_Stepper_TYPE == 1 // NEMA
#define DECmotorPin1 16
#define DECmotorPin2 17
#endif

#endif

///////////////////////////////////////////////////////////////////////////
// Arduino Mega
Expand Down

0 comments on commit 96e410f

Please sign in to comment.