Browse Source

Merge pull request #595 from nothinman/Marlin_v1

Fan fix for Panelolu2+Sanguinololu.
ErikZalm 12 years ago
parent
commit
59e36f1d27
1 changed files with 19 additions and 15 deletions
  1. 19
    15
      Marlin/pins.h

+ 19
- 15
Marlin/pins.h View File

492
         #define SDSS 53
492
         #define SDSS 53
493
         #define SDCARDDETECT -1
493
         #define SDCARDDETECT -1
494
         #define KILL_PIN 41
494
         #define KILL_PIN 41
495
-        #define FAN_PIN 45
495
+              
496
       #else
496
       #else
497
         //arduino pin which triggers an piezzo beeper
497
         //arduino pin which triggers an piezzo beeper
498
         #define BEEPER 33  // Beeper on AUX-4
498
         #define BEEPER 33  // Beeper on AUX-4
901
 #define LED_PIN            -1
901
 #define LED_PIN            -1
902
 
902
 
903
 #define FAN_PIN            -1
903
 #define FAN_PIN            -1
904
-#if FAN_PIN == 12 || FAN_PIN ==13
905
-#define FAN_SOFT_PWM
904
+ #if FAN_PIN == 12 || FAN_PIN ==13
905
+  #define FAN_SOFT_PWM
906
 #endif
906
 #endif
907
 
907
 
908
 #ifdef MELZI
908
 #ifdef MELZI
909
-#define LED_PIN            27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */
910
-#define FAN_PIN            4
909
+ #define LED_PIN            27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */
910
+ #define FAN_PIN            4 // Works for Panelolu2 too
911
 #endif
911
 #endif
912
 
912
 
913
 #ifdef STB
913
 #ifdef STB
914
-#define FAN_PIN            4
914
+ #define FAN_PIN            4
915
 	//  Uncomment this if you have the first generation (V1.10) of STBs board
915
 	//  Uncomment this if you have the first generation (V1.10) of STBs board
916
-#define LCD_PIN_BL         17 // LCD backlight LED
916
+ #define LCD_PIN_BL         17 // LCD backlight LED
917
 #endif
917
 #endif
918
 
918
 
919
 #ifdef AZTEEG_X1
919
 #ifdef AZTEEG_X1
920
-#define FAN_PIN            4
920
+ #define FAN_PIN            4
921
 #endif
921
 #endif
922
 
922
 
923
 #define PS_ON_PIN          -1
923
 #define PS_ON_PIN          -1
929
 
929
 
930
 #ifdef SANGUINOLOLU_V_1_2
930
 #ifdef SANGUINOLOLU_V_1_2
931
 
931
 
932
-#define HEATER_BED_PIN     12 // (bed)
933
-#define X_ENABLE_PIN       14
934
-#define Y_ENABLE_PIN       14
935
-#define Z_ENABLE_PIN       26
936
-#define E0_ENABLE_PIN       14
932
+ #define HEATER_BED_PIN     12 // (bed)
933
+ #define X_ENABLE_PIN       14
934
+ #define Y_ENABLE_PIN       14
935
+ #define Z_ENABLE_PIN       26
936
+ #define E0_ENABLE_PIN      14
937
+
938
+ #ifdef LCD_I2C_PANELOLU2
939
+   #define FAN_PIN          4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
940
+ #endif
937
 
941
 
938
 #else
942
 #else
939
 
943
 
940
-#define HEATER_BED_PIN       14  // (bed)
944
+#define HEATER_BED_PIN      14  // (bed)
941
 #define X_ENABLE_PIN       -1
945
 #define X_ENABLE_PIN       -1
942
 #define Y_ENABLE_PIN       -1
946
 #define Y_ENABLE_PIN       -1
943
 #define Z_ENABLE_PIN       -1
947
 #define Z_ENABLE_PIN       -1
944
-#define E0_ENABLE_PIN       -1
948
+#define E0_ENABLE_PIN      -1
945
 
949
 
946
 #endif
950
 #endif
947
 
951
 

Loading…
Cancel
Save