Skip to content

Commit

Permalink
MegaPi: set reset pins to high
Browse files Browse the repository at this point in the history
  • Loading branch information
svogl committed Mar 9, 2017
1 parent e26993b commit 5857fcd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Marlin/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,16 @@ void Stepper::init() {
E_AXIS_INIT(3);
#endif

// initialize reset pins to enable drivers (needed for MakeBlock MegaPi):
#if PIN_EXISTS(X_RESET)
SET_OUTPUT(X_RESET_PIN);
WRITE(X_RESET_PIN, 1);
#endif
#if PIN_EXISTS(Y_RESET)
SET_OUTPUT(Y_RESET_PIN);
WRITE(Y_RESET_PIN, 1);
#endif

// waveform generation = 0100 = CTC
CBI(TCCR1B, WGM13);
SBI(TCCR1B, WGM12);
Expand Down

0 comments on commit 5857fcd

Please sign in to comment.