瀏覽代碼

Merge branch 'Development' into fixup_temperature

Merge upstream changes
Scott Lahteine 10 年之前
父節點
當前提交
1db02c2891

+ 12
- 1
Marlin/Configuration.h 查看文件

118
 // 1010 is Pt1000 with 1k pullup (non standard)
118
 // 1010 is Pt1000 with 1k pullup (non standard)
119
 // 147 is Pt100 with 4k7 pullup
119
 // 147 is Pt100 with 4k7 pullup
120
 // 110 is Pt100 with 1k pullup (non standard)
120
 // 110 is Pt100 with 1k pullup (non standard)
121
-// 999 is a Dummy Table. It will ALWAYS read 25C.. Use it for Testing or Development purposes. NEVER for production machine.
121
+// 998 and 999 are Dummy Tables. They will ALWAYS read 25°C or the temperature defined below. 
122
+//     Use it for Testing or Development purposes. NEVER for production machine.
123
+//     #define DUMMY_THERMISTOR_998_VALUE 25
124
+//     #define DUMMY_THERMISTOR_999_VALUE 100
122
 
125
 
123
 #define TEMP_SENSOR_0 -1
126
 #define TEMP_SENSOR_0 -1
124
 #define TEMP_SENSOR_1 -1
127
 #define TEMP_SENSOR_1 -1
582
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
585
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
583
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
586
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
584
 
587
 
588
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
589
+// http://reprap.org/wiki/PanelOne
590
+//#define PANEL_ONE
591
+
585
 // The MaKr3d Makr-Panel with graphic controller and SD support
592
 // The MaKr3d Makr-Panel with graphic controller and SD support
586
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
593
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
587
 //#define MAKRPANEL
594
 //#define MAKRPANEL
640
  #define ENCODER_STEPS_PER_MENU_ITEM 1
647
  #define ENCODER_STEPS_PER_MENU_ITEM 1
641
 #endif
648
 #endif
642
 
649
 
650
+#if defined (PANEL_ONE)
651
+ #define SDSUPPORT
652
+ #define ULTIMAKERCONTROLLER
653
+#endif
643
 
654
 
644
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
655
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
645
  #define DOGLCD
656
  #define DOGLCD

+ 28
- 14
Marlin/Marlin_main.cpp 查看文件

1720
 
1720
 
1721
 #ifdef ENABLE_AUTO_BED_LEVELING
1721
 #ifdef ENABLE_AUTO_BED_LEVELING
1722
     case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points.
1722
     case 29: // G29 Detailed Z-Probe, probes the bed at 3 or more points.
1723
+    	     // Override probing area by providing [F]ront [B]ack [L]eft [R]ight Grid[P]oints values
1723
         {
1724
         {
1724
             #if Z_MIN_PIN == -1
1725
             #if Z_MIN_PIN == -1
1725
             #error "You must have a Z_MIN endstop in order to enable Auto Bed Leveling feature!!! Z_MIN_PIN must point to a valid hardware pin."
1726
             #error "You must have a Z_MIN endstop in order to enable Auto Bed Leveling feature!!! Z_MIN_PIN must point to a valid hardware pin."
1733
                 SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
1734
                 SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
1734
                 break; // abort G29, since we don't know where we are
1735
                 break; // abort G29, since we don't know where we are
1735
             }
1736
             }
1737
+            int left_probe_bed_position=LEFT_PROBE_BED_POSITION;
1738
+            int right_probe_bed_position=RIGHT_PROBE_BED_POSITION;
1739
+            int back_probe_bed_position=BACK_PROBE_BED_POSITION;
1740
+            int front_probe_bed_position=FRONT_PROBE_BED_POSITION;
1741
+            int auto_bed_leveling_grid_points=AUTO_BED_LEVELING_GRID_POINTS;
1742
+            if (code_seen('L')) left_probe_bed_position=(int)code_value();
1743
+            if (code_seen('R')) right_probe_bed_position=(int)code_value();
1744
+            if (code_seen('B')) back_probe_bed_position=(int)code_value();
1745
+            if (code_seen('F')) front_probe_bed_position=(int)code_value();
1746
+            if (code_seen('P')) auto_bed_leveling_grid_points=(int)code_value();
1736
 
1747
 
1737
 #ifdef Z_PROBE_SLED
1748
 #ifdef Z_PROBE_SLED
1738
             dock_sled(false);
1749
             dock_sled(false);
1754
 #ifdef AUTO_BED_LEVELING_GRID
1765
 #ifdef AUTO_BED_LEVELING_GRID
1755
             // probe at the points of a lattice grid
1766
             // probe at the points of a lattice grid
1756
 
1767
 
1757
-            int xGridSpacing = (RIGHT_PROBE_BED_POSITION - LEFT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1);
1758
-            int yGridSpacing = (BACK_PROBE_BED_POSITION - FRONT_PROBE_BED_POSITION) / (AUTO_BED_LEVELING_GRID_POINTS-1);
1768
+            int xGridSpacing = (right_probe_bed_position - left_probe_bed_position) / (auto_bed_leveling_grid_points-1);
1769
+            int yGridSpacing = (back_probe_bed_position - front_probe_bed_position) / (auto_bed_leveling_grid_points-1);
1759
 
1770
 
1760
 
1771
 
1761
             // solve the plane equation ax + by + d = z
1772
             // solve the plane equation ax + by + d = z
1765
             // so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z
1776
             // so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z
1766
 
1777
 
1767
             // "A" matrix of the linear system of equations
1778
             // "A" matrix of the linear system of equations
1768
-            double eqnAMatrix[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS*3];
1779
+            double eqnAMatrix[auto_bed_leveling_grid_points*auto_bed_leveling_grid_points*3];
1780
+
1769
             // "B" vector of Z points
1781
             // "B" vector of Z points
1770
-            double eqnBVector[AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS];
1782
+            double eqnBVector[auto_bed_leveling_grid_points*auto_bed_leveling_grid_points];
1783
+
1771
 
1784
 
1772
 
1785
 
1773
             int probePointCounter = 0;
1786
             int probePointCounter = 0;
1774
             bool zig = true;
1787
             bool zig = true;
1775
 
1788
 
1776
-            for (int yProbe=FRONT_PROBE_BED_POSITION; yProbe <= BACK_PROBE_BED_POSITION; yProbe += yGridSpacing)
1789
+            for (int yProbe=front_probe_bed_position; yProbe <= back_probe_bed_position; yProbe += yGridSpacing)
1790
+
1777
             {
1791
             {
1778
               int xProbe, xInc;
1792
               int xProbe, xInc;
1779
               if (zig)
1793
               if (zig)
1780
               {
1794
               {
1781
-                xProbe = LEFT_PROBE_BED_POSITION;
1782
-                //xEnd = RIGHT_PROBE_BED_POSITION;
1795
+                xProbe = left_probe_bed_position;
1796
+                //xEnd = right_probe_bed_position;
1783
                 xInc = xGridSpacing;
1797
                 xInc = xGridSpacing;
1784
                 zig = false;
1798
                 zig = false;
1785
               } else // zag
1799
               } else // zag
1786
               {
1800
               {
1787
-                xProbe = RIGHT_PROBE_BED_POSITION;
1788
-                //xEnd = LEFT_PROBE_BED_POSITION;
1801
+                xProbe = right_probe_bed_position;
1802
+                //xEnd = left_probe_bed_position;
1789
                 xInc = -xGridSpacing;
1803
                 xInc = -xGridSpacing;
1790
                 zig = true;
1804
                 zig = true;
1791
               }
1805
               }
1792
 
1806
 
1793
-              for (int xCount=0; xCount < AUTO_BED_LEVELING_GRID_POINTS; xCount++)
1807
+              for (int xCount=0; xCount < auto_bed_leveling_grid_points; xCount++)
1794
               {
1808
               {
1795
                 float z_before;
1809
                 float z_before;
1796
                 if (probePointCounter == 0)
1810
                 if (probePointCounter == 0)
1822
 
1836
 
1823
                 eqnBVector[probePointCounter] = measured_z;
1837
                 eqnBVector[probePointCounter] = measured_z;
1824
 
1838
 
1825
-                eqnAMatrix[probePointCounter + 0*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = xProbe;
1826
-                eqnAMatrix[probePointCounter + 1*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = yProbe;
1827
-                eqnAMatrix[probePointCounter + 2*AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS] = 1;
1839
+                eqnAMatrix[probePointCounter + 0*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = xProbe;
1840
+                eqnAMatrix[probePointCounter + 1*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = yProbe;
1841
+                eqnAMatrix[probePointCounter + 2*auto_bed_leveling_grid_points*auto_bed_leveling_grid_points] = 1;
1828
                 probePointCounter++;
1842
                 probePointCounter++;
1829
                 xProbe += xInc;
1843
                 xProbe += xInc;
1830
               }
1844
               }
1832
             clean_up_after_endstop_move();
1846
             clean_up_after_endstop_move();
1833
 
1847
 
1834
             // solve lsq problem
1848
             // solve lsq problem
1835
-            double *plane_equation_coefficients = qr_solve(AUTO_BED_LEVELING_GRID_POINTS*AUTO_BED_LEVELING_GRID_POINTS, 3, eqnAMatrix, eqnBVector);
1849
+            double *plane_equation_coefficients = qr_solve(auto_bed_leveling_grid_points*auto_bed_leveling_grid_points, 3, eqnAMatrix, eqnBVector);
1836
 
1850
 
1837
             SERIAL_PROTOCOLPGM("Eqn coefficients: a: ");
1851
             SERIAL_PROTOCOLPGM("Eqn coefficients: a: ");
1838
             SERIAL_PROTOCOL(plane_equation_coefficients[0]);
1852
             SERIAL_PROTOCOL(plane_equation_coefficients[0]);

+ 8
- 0
Marlin/example_configurations/Hephestos/Configuration.h 查看文件

587
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
587
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
588
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
588
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
589
 
589
 
590
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
591
+// http://reprap.org/wiki/PanelOne
592
+//#define PANEL_ONE
593
+
590
 // The MaKr3d Makr-Panel with graphic controller and SD support
594
 // The MaKr3d Makr-Panel with graphic controller and SD support
591
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
595
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
592
 //#define MAKRPANEL
596
 //#define MAKRPANEL
645
  #define ENCODER_STEPS_PER_MENU_ITEM 1
649
  #define ENCODER_STEPS_PER_MENU_ITEM 1
646
 #endif
650
 #endif
647
 
651
 
652
+#if defined (PANEL_ONE)
653
+ #define SDSUPPORT
654
+ #define ULTIMAKERCONTROLLER
655
+#endif
648
 
656
 
649
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
657
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
650
  #define DOGLCD
658
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/K8200/Configuration.h 查看文件

597
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
597
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
598
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
598
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
599
 
599
 
600
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
601
+// http://reprap.org/wiki/PanelOne
602
+//#define PANEL_ONE
603
+
600
 // The MaKr3d Makr-Panel with graphic controller and SD support
604
 // The MaKr3d Makr-Panel with graphic controller and SD support
601
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
605
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
602
 //#define MAKRPANEL
606
 //#define MAKRPANEL
655
  #define ENCODER_STEPS_PER_MENU_ITEM 1
659
  #define ENCODER_STEPS_PER_MENU_ITEM 1
656
 #endif
660
 #endif
657
 
661
 
662
+#if defined (PANEL_ONE)
663
+ #define SDSUPPORT
664
+ #define ULTIMAKERCONTROLLER
665
+#endif
658
 
666
 
659
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
667
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
660
  #define DOGLCD
668
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/SCARA/Configuration.h 查看文件

590
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
590
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
591
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
591
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
592
 
592
 
593
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
594
+// http://reprap.org/wiki/PanelOne
595
+//#define PANEL_ONE
596
+
593
 // The MaKr3d Makr-Panel with graphic controller and SD support
597
 // The MaKr3d Makr-Panel with graphic controller and SD support
594
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
598
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
595
 //#define MAKRPANEL
599
 //#define MAKRPANEL
648
  #define ENCODER_STEPS_PER_MENU_ITEM 1
652
  #define ENCODER_STEPS_PER_MENU_ITEM 1
649
 #endif
653
 #endif
650
 
654
 
655
+#if defined (PANEL_ONE)
656
+ #define SDSUPPORT
657
+ #define ULTIMAKERCONTROLLER
658
+#endif
651
 
659
 
652
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
660
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
653
  #define DOGLCD
661
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/WITBOX/Configuration.h 查看文件

591
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
591
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
592
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
592
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
593
 
593
 
594
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
595
+// http://reprap.org/wiki/PanelOne
596
+//#define PANEL_ONE
597
+
594
 // The MaKr3d Makr-Panel with graphic controller and SD support
598
 // The MaKr3d Makr-Panel with graphic controller and SD support
595
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
599
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
596
 //#define MAKRPANEL
600
 //#define MAKRPANEL
649
  #define ENCODER_STEPS_PER_MENU_ITEM 1
653
  #define ENCODER_STEPS_PER_MENU_ITEM 1
650
 #endif
654
 #endif
651
 
655
 
656
+#if defined (PANEL_ONE)
657
+ #define SDSUPPORT
658
+ #define ULTIMAKERCONTROLLER
659
+#endif
652
 
660
 
653
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
661
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
654
  #define DOGLCD
662
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/delta/Configuration.h 查看文件

495
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
495
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
496
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
496
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
497
 
497
 
498
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
499
+// http://reprap.org/wiki/PanelOne
500
+//#define PANEL_ONE
501
+
498
 // The MaKr3d Makr-Panel with graphic controller and SD support
502
 // The MaKr3d Makr-Panel with graphic controller and SD support
499
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
503
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
500
 //#define MAKRPANEL
504
 //#define MAKRPANEL
560
  #define ENCODER_STEPS_PER_MENU_ITEM 1
564
  #define ENCODER_STEPS_PER_MENU_ITEM 1
561
 #endif
565
 #endif
562
 
566
 
567
+#if defined (PANEL_ONE)
568
+ #define SDSUPPORT
569
+ #define ULTIMAKERCONTROLLER
570
+#endif
563
 
571
 
564
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
572
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
565
  #define DOGLCD
573
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/makibox/Configuration.h 查看文件

565
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
565
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
566
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
566
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
567
 
567
 
568
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
569
+// http://reprap.org/wiki/PanelOne
570
+//#define PANEL_ONE
571
+
568
 // The MaKr3d Makr-Panel with graphic controller and SD support
572
 // The MaKr3d Makr-Panel with graphic controller and SD support
569
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
573
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
570
 //#define MAKRPANEL
574
 //#define MAKRPANEL
623
  #define ENCODER_STEPS_PER_MENU_ITEM 1
627
  #define ENCODER_STEPS_PER_MENU_ITEM 1
624
 #endif
628
 #endif
625
 
629
 
630
+#if defined (PANEL_ONE)
631
+ #define SDSUPPORT
632
+ #define ULTIMAKERCONTROLLER
633
+#endif
626
 
634
 
627
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
635
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
628
  #define DOGLCD
636
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h 查看文件

578
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
578
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
579
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
579
 //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click
580
 
580
 
581
+// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
582
+// http://reprap.org/wiki/PanelOne
583
+//#define PANEL_ONE
584
+
581
 // The MaKr3d Makr-Panel with graphic controller and SD support
585
 // The MaKr3d Makr-Panel with graphic controller and SD support
582
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
586
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
583
 //#define MAKRPANEL
587
 //#define MAKRPANEL
636
  #define ENCODER_STEPS_PER_MENU_ITEM 1
640
  #define ENCODER_STEPS_PER_MENU_ITEM 1
637
 #endif
641
 #endif
638
 
642
 
643
+#if defined (PANEL_ONE)
644
+ #define SDSUPPORT
645
+ #define ULTIMAKERCONTROLLER
646
+#endif
639
 
647
 
640
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
648
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
641
  #define DOGLCD
649
  #define DOGLCD

+ 16
- 6
Marlin/pins_RAMPS_13.h 查看文件

122
 #ifdef ULTRA_LCD
122
 #ifdef ULTRA_LCD
123
 
123
 
124
   #ifdef NEWPANEL
124
   #ifdef NEWPANEL
125
-    #define LCD_PINS_RS 16
126
-    #define LCD_PINS_ENABLE 17
127
-    #define LCD_PINS_D4 23
128
-    #define LCD_PINS_D5 25
129
-    #define LCD_PINS_D6 27
130
-    #define LCD_PINS_D7 29
125
+    #ifdef PANEL_ONE
126
+      #define LCD_PINS_RS 40
127
+      #define LCD_PINS_ENABLE 42
128
+      #define LCD_PINS_D4 65
129
+      #define LCD_PINS_D5 66
130
+      #define LCD_PINS_D6 44
131
+      #define LCD_PINS_D7 64
132
+    #else
133
+      #define LCD_PINS_RS 16
134
+      #define LCD_PINS_ENABLE 17
135
+      #define LCD_PINS_D4 23
136
+      #define LCD_PINS_D5 25
137
+      #define LCD_PINS_D6 27
138
+      #define LCD_PINS_D7 29
139
+    #endif
140
+
131
 
141
 
132
     #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
142
     #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
133
       #define BEEPER 37
143
       #define BEEPER 37

+ 17
- 4
Marlin/thermistortables.h 查看文件

1096
 #endif
1096
 #endif
1097
 
1097
 
1098
 #if (THERMISTORHEATER_0 == 999) || (THERMISTORHEATER_1 == 999) || (THERMISTORHEATER_2 == 999) || (THERMISTORHEATER_3 == 999) || (THERMISTORBED == 999) //User defined table
1098
 #if (THERMISTORHEATER_0 == 999) || (THERMISTORHEATER_1 == 999) || (THERMISTORHEATER_2 == 999) || (THERMISTORHEATER_3 == 999) || (THERMISTORBED == 999) //User defined table
1099
-// Dummy Thermistor table.. It will ALWAYS read 25C.
1100
-const short temptable_999[][2] PROGMEM = {
1101
-   {1*OVERSAMPLENR, 25},
1102
-   {1023*OVERSAMPLENR, 25}
1099
+  // Dummy Thermistor table.. It will ALWAYS read a fixed value.
1100
+  #ifndef DUMMY_THERMISTOR_999_VALUE
1101
+    #define DUMMY_THERMISTOR_999_VALUE 25
1102
+  #endif
1103
+  const short temptable_999[][2] PROGMEM = {
1104
+    {1*OVERSAMPLENR, DUMMY_THERMISTOR_999_VALUE},
1105
+    {1023*OVERSAMPLENR, DUMMY_THERMISTOR_999_VALUE}
1103
 };
1106
 };
1104
 #endif
1107
 #endif
1105
 
1108
 
1109
+#if (THERMISTORHEATER_0 == 998) || (THERMISTORHEATER_1 == 998) || (THERMISTORHEATER_2 == 998) || (THERMISTORHEATER_3 == 998) || (THERMISTORBED == 998) //User defined table
1110
+  // Dummy Thermistor table.. It will ALWAYS read a fixed value.
1111
+  #ifndef DUMMY_THERMISTOR_998_VALUE
1112
+    #define DUMMY_THERMISTOR_998_VALUE 25
1113
+  #endif
1114
+  const short temptable_998[][2] PROGMEM = {
1115
+    {1*OVERSAMPLENR, DUMMY_THERMISTOR_998_VALUE},
1116
+    {1023*OVERSAMPLENR, DUMMY_THERMISTOR_998_VALUE}
1117
+};
1118
+#endif
1106
 
1119
 
1107
 
1120
 
1108
 #define _TT_NAME(_N) temptable_ ## _N
1121
 #define _TT_NAME(_N) temptable_ ## _N

Loading…
取消
儲存