From f14bac8a91a82fdc33b5c65d8033014ec5f45a6f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 17 Sep 2011 09:45:25 +0200 Subject: Initialize LED pin (was stuck after hard resets) --- Sprinter/Sprinter.pde | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Sprinter/Sprinter.pde') diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index cc1434f..8e94db8 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -302,6 +302,12 @@ void setup() SET_OUTPUT(FAN_PIN); #endif + //Initialize LED Pin + #if (LED_PIN > -1) + SET_OUTPUT(LED_PIN); + WRITE(LED_PIN,LOW); + #endif + //Initialize Step Pins #if (X_STEP_PIN > -1) SET_OUTPUT(X_STEP_PIN); -- cgit v1.2.1