diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-09-17 09:45:25 +0200 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-09-17 09:45:25 +0200 |
commit | f14bac8a91a82fdc33b5c65d8033014ec5f45a6f (patch) | |
tree | 243cb9d8539b1c3311e5f776cbc9d9b0a6760f3a /Sprinter | |
parent | f2d626836e07effe5dfa8d1b1a06b735a565bb42 (diff) |
Initialize LED pin (was stuck after hard resets)
Diffstat (limited to 'Sprinter')
-rw-r--r-- | Sprinter/Sprinter.pde | 6 |
1 files changed, 6 insertions, 0 deletions
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); |