Kaynağa Gözat

Update printrboard pin assignments

Backported from Printrbot branch, allows the fan to work correctly.
PxT 10 yıl önce
ebeveyn
işleme
67b597ad46
1 değiştirilmiş dosya ile 11 ekleme ve 7 silme
  1. 11
    7
      Marlin/pins.h

+ 11
- 7
Marlin/pins.h Dosyayı Görüntüle

@@ -1753,12 +1753,16 @@
1753 1753
 #define E0_ENABLE_PIN      19
1754 1754
 
1755 1755
 #define HEATER_0_PIN       21  // Extruder
1756
-#define HEATER_1_PIN       -1
1757
-#define HEATER_2_PIN       -1
1756
+#define HEATER_1_PIN       46
1757
+#define HEATER_2_PIN       47
1758 1758
 #define HEATER_BED_PIN     20  // Bed
1759
-#define FAN_PIN            22  // Fan
1760
-// You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
1761
-// for the fan and Teensyduino uses a different pin mapping.
1759
+// If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
1760
+// fastio pin numbering otherwise
1761
+#ifdef FAN_SOFT_PWM || FAST_PWM_FAN
1762
+        #define FAN_PIN        22  // Fan
1763
+#else
1764
+        #define FAN_PIN        16  // Fan
1765
+#endif
1762 1766
 
1763 1767
 #if MB(TEENSYLU)  // Teensylu
1764 1768
   #define X_STOP_PIN         13
@@ -1777,8 +1781,8 @@
1777 1781
   #endif //FILAMENT_SENSOR
1778 1782
 #endif
1779 1783
 
1780
-#define TEMP_1_PIN         -1
1781
-#define TEMP_2_PIN         -1
1784
+#define TEMP_1_PIN         2
1785
+#define TEMP_2_PIN         3
1782 1786
 
1783 1787
 #define SDPOWER            -1
1784 1788
 #define SDSS                8

Loading…
İptal
Kaydet