diff --git a/spindle_control.c b/spindle_control.c index 548e477..34d559b 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -25,24 +25,28 @@ #include +static int current_direction; + void spindle_init() { - SPINDLE_ENABLE_DDR |= 1<= 0) { - SPINDLE_DIRECTION_PORT &= ~(1<= 0) { + SPINDLE_DIRECTION_PORT &= ~(1<