From b02e8bd71a6087a76d884488c95ad66c64e75a74 Mon Sep 17 00:00:00 2001 From: Laine Walker-Avina Date: Wed, 24 Jul 2013 22:25:42 -0700 Subject: [PATCH] Fix pins for Printrboard --- Marlin/pins.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Marlin/pins.h b/Marlin/pins.h index ca07289196eb..d8febd42c440 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -1544,9 +1544,14 @@ #define HEATER_1_PIN 46 #define HEATER_2_PIN 47 #define HEATER_BED_PIN 20 // Bed -#define FAN_PIN 16 // Fan -// You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h -// for the fan and Teensyduino uses a different pin mapping. + +// If soft or fast PWM is off then use Teensyduino pin numbering, Marlin +// fastio pin numbering otherwise +#ifdef FAN_SOFT_PWM || FAST_PWM_FAN + #define FAN_PIN 22 // Fan +#else + #define FAN_PIN 16 // Fan +#endif #if MOTHERBOARD == 8 // Teensylu #define X_STOP_PIN 13 @@ -1566,7 +1571,7 @@ #define TEMP_2_PIN 3 #define SDPOWER -1 -#define SDSS 8 +#define SDSS 26 #define LED_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1