extruder: Use pull up resistors for step/dir pin to avoid noise.

This commit is contained in:
Markus Amsler 2011-02-21 15:52:15 +11:00 committed by Michael Moon
parent d0cbe86a2d
commit e032cf5dab
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ void io_init(void) {
SET_INPUT(E_STEP_PIN);
SET_INPUT(E_DIR_PIN);
// use pull up resistors to avoid noise
WRITE(E_STEP_PIN, 1);
WRITE(E_DIR_PIN, 1);
//Enable the RS485 transceiver
SET_OUTPUT(RX_ENABLE_PIN);
SET_OUTPUT(TX_ENABLE_PIN);