소스 검색

Merge branch 'Development' into marlin_configurator

Latest upstream changes
Scott Lahteine 9 년 전
부모
커밋
8d5839151b

+ 12
- 1
Marlin/Configuration.h 파일 보기

@@ -118,7 +118,10 @@ Here are some standard links for getting your machine calibrated:
118 118
 // 1010 is Pt1000 with 1k pullup (non standard)
119 119
 // 147 is Pt100 with 4k7 pullup
120 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 126
 #define TEMP_SENSOR_0 -1
124 127
 #define TEMP_SENSOR_1 -1
@@ -582,6 +585,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
582 585
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
583 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 592
 // The MaKr3d Makr-Panel with graphic controller and SD support
586 593
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
587 594
 //#define MAKRPANEL
@@ -640,6 +647,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
640 647
  #define ENCODER_STEPS_PER_MENU_ITEM 1
641 648
 #endif
642 649
 
650
+#if defined (PANEL_ONE)
651
+ #define SDSUPPORT
652
+ #define ULTIMAKERCONTROLLER
653
+#endif
643 654
 
644 655
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
645 656
  #define DOGLCD

+ 32
- 27
Marlin/Marlin_main.cpp 파일 보기

@@ -1720,6 +1720,7 @@ void process_commands()
1720 1720
 
1721 1721
 #ifdef ENABLE_AUTO_BED_LEVELING
1722 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 1725
             #if Z_MIN_PIN == -1
1725 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,6 +1734,16 @@ void process_commands()
1733 1734
                 SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
1734 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 1748
 #ifdef Z_PROBE_SLED
1738 1749
             dock_sled(false);
@@ -1754,8 +1765,8 @@ void process_commands()
1754 1765
 #ifdef AUTO_BED_LEVELING_GRID
1755 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 1772
             // solve the plane equation ax + by + d = z
@@ -1765,32 +1776,35 @@ void process_commands()
1765 1776
             // so Vx = -a Vy = -b Vz = 1 (we want the vector facing towards positive Z
1766 1777
 
1767 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 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 1786
             int probePointCounter = 0;
1774 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 1792
               int xProbe, xInc;
1779 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 1797
                 xInc = xGridSpacing;
1784 1798
                 zig = false;
1785 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 1803
                 xInc = -xGridSpacing;
1790 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 1809
                 float z_before;
1796 1810
                 if (probePointCounter == 0)
@@ -1822,9 +1836,9 @@ void process_commands()
1822 1836
 
1823 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 1842
                 probePointCounter++;
1829 1843
                 xProbe += xInc;
1830 1844
               }
@@ -1832,7 +1846,7 @@ void process_commands()
1832 1846
             clean_up_after_endstop_move();
1833 1847
 
1834 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 1851
             SERIAL_PROTOCOLPGM("Eqn coefficients: a: ");
1838 1852
             SERIAL_PROTOCOL(plane_equation_coefficients[0]);
@@ -4695,21 +4709,12 @@ bool setTargetedHotend(int code){
4695 4709
 
4696 4710
 
4697 4711
 float calculate_volumetric_multiplier(float diameter) {
4698
-	float area = .0;
4699
-	float radius = .0;
4700
-
4701
-	radius = diameter * .5;
4702
-	if (! volumetric_enabled || radius == 0) {
4703
-		area = 1;
4704
-	}
4705
-	else {
4706
-		area = M_PI * pow(radius, 2);
4707
-	}
4708
-
4709
-	return 1.0 / area;
4712
+  if (!volumetric_enabled || diameter == 0) return 1.0;
4713
+  float d2 = diameter * 0.5;
4714
+  return 1.0 / (M_PI * d2 * d2);
4710 4715
 }
4711 4716
 
4712 4717
 void calculate_volumetric_multipliers() {
4713 4718
   for (int i=0; i<EXTRUDERS; i++)
4714
-  	volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
4719
+    volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
4715 4720
 }

+ 8
- 0
Marlin/example_configurations/Hephestos/Configuration.h 파일 보기

@@ -587,6 +587,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
587 587
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
588 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 594
 // The MaKr3d Makr-Panel with graphic controller and SD support
591 595
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
592 596
 //#define MAKRPANEL
@@ -645,6 +649,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
645 649
  #define ENCODER_STEPS_PER_MENU_ITEM 1
646 650
 #endif
647 651
 
652
+#if defined (PANEL_ONE)
653
+ #define SDSUPPORT
654
+ #define ULTIMAKERCONTROLLER
655
+#endif
648 656
 
649 657
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
650 658
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/K8200/Configuration.h 파일 보기

@@ -597,6 +597,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
597 597
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
598 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 604
 // The MaKr3d Makr-Panel with graphic controller and SD support
601 605
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
602 606
 //#define MAKRPANEL
@@ -655,6 +659,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
655 659
  #define ENCODER_STEPS_PER_MENU_ITEM 1
656 660
 #endif
657 661
 
662
+#if defined (PANEL_ONE)
663
+ #define SDSUPPORT
664
+ #define ULTIMAKERCONTROLLER
665
+#endif
658 666
 
659 667
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
660 668
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/SCARA/Configuration.h 파일 보기

@@ -590,6 +590,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
590 590
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
591 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 597
 // The MaKr3d Makr-Panel with graphic controller and SD support
594 598
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
595 599
 //#define MAKRPANEL
@@ -648,6 +652,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
648 652
  #define ENCODER_STEPS_PER_MENU_ITEM 1
649 653
 #endif
650 654
 
655
+#if defined (PANEL_ONE)
656
+ #define SDSUPPORT
657
+ #define ULTIMAKERCONTROLLER
658
+#endif
651 659
 
652 660
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
653 661
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/WITBOX/Configuration.h 파일 보기

@@ -591,6 +591,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
591 591
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
592 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 598
 // The MaKr3d Makr-Panel with graphic controller and SD support
595 599
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
596 600
 //#define MAKRPANEL
@@ -649,6 +653,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
649 653
  #define ENCODER_STEPS_PER_MENU_ITEM 1
650 654
 #endif
651 655
 
656
+#if defined (PANEL_ONE)
657
+ #define SDSUPPORT
658
+ #define ULTIMAKERCONTROLLER
659
+#endif
652 660
 
653 661
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
654 662
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/delta/Configuration.h 파일 보기

@@ -495,6 +495,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
495 495
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
496 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 502
 // The MaKr3d Makr-Panel with graphic controller and SD support
499 503
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
500 504
 //#define MAKRPANEL
@@ -560,6 +564,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
560 564
  #define ENCODER_STEPS_PER_MENU_ITEM 1
561 565
 #endif
562 566
 
567
+#if defined (PANEL_ONE)
568
+ #define SDSUPPORT
569
+ #define ULTIMAKERCONTROLLER
570
+#endif
563 571
 
564 572
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
565 573
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/makibox/Configuration.h 파일 보기

@@ -565,6 +565,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
565 565
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
566 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 572
 // The MaKr3d Makr-Panel with graphic controller and SD support
569 573
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
570 574
 //#define MAKRPANEL
@@ -623,6 +627,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
623 627
  #define ENCODER_STEPS_PER_MENU_ITEM 1
624 628
 #endif
625 629
 
630
+#if defined (PANEL_ONE)
631
+ #define SDSUPPORT
632
+ #define ULTIMAKERCONTROLLER
633
+#endif
626 634
 
627 635
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
628 636
  #define DOGLCD

+ 8
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h 파일 보기

@@ -578,6 +578,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
578 578
 //#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
579 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 585
 // The MaKr3d Makr-Panel with graphic controller and SD support
582 586
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
583 587
 //#define MAKRPANEL
@@ -636,6 +640,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
636 640
  #define ENCODER_STEPS_PER_MENU_ITEM 1
637 641
 #endif
638 642
 
643
+#if defined (PANEL_ONE)
644
+ #define SDSUPPORT
645
+ #define ULTIMAKERCONTROLLER
646
+#endif
639 647
 
640 648
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
641 649
  #define DOGLCD

+ 43
- 1
Marlin/language_en.h 파일 보기

@@ -65,6 +65,18 @@
65 65
 #ifndef MSG_PREHEAT_ABS_SETTINGS
66 66
 #define MSG_PREHEAT_ABS_SETTINGS            MSG_PREHEAT_ABS " conf"
67 67
 #endif
68
+#ifndef MSG_H1
69
+#define MSG_H1                              "1"
70
+#endif
71
+#ifndef MSG_H2
72
+#define MSG_H2                              "2"
73
+#endif
74
+#ifndef MSG_H3
75
+#define MSG_H3                              "3"
76
+#endif
77
+#ifndef MSG_H4
78
+#define MSG_H4                              "4"
79
+#endif
68 80
 #ifndef MSG_COOLDOWN
69 81
 #define MSG_COOLDOWN                        "Cooldown"
70 82
 #endif
@@ -110,6 +122,15 @@
110 122
 #ifndef MSG_NOZZLE
111 123
 #define MSG_NOZZLE                          "Nozzle"
112 124
 #endif
125
+#ifndef MSG_N2
126
+#define MSG_N2                              " 2"
127
+#endif
128
+#ifndef MSG_N3
129
+#define MSG_N3                              " 3"
130
+#endif
131
+#ifndef MSG_N4
132
+#define MSG_N4                              " 4"
133
+#endif
113 134
 #ifndef MSG_BED
114 135
 #define MSG_BED                             "Bed"
115 136
 #endif
@@ -119,6 +140,18 @@
119 140
 #ifndef MSG_FLOW
120 141
 #define MSG_FLOW                            "Flow"
121 142
 #endif
143
+#ifndef MSG_F0
144
+#define MSG_F0                              " 0"
145
+#endif
146
+#ifndef MSG_F1
147
+#define MSG_F1                              " 1"
148
+#endif
149
+#ifndef MSG_F2
150
+#define MSG_F2                              " 2"
151
+#endif
152
+#ifndef MSG_F3
153
+#define MSG_F3                              " 3"
154
+#endif
122 155
 #ifndef MSG_CONTROL
123 156
 #define MSG_CONTROL                         "Control"
124 157
 #endif
@@ -152,6 +185,15 @@
152 185
 #ifndef MSG_PID_C
153 186
 #define MSG_PID_C                           "PID-C"
154 187
 #endif
188
+#ifndef MSG_E2
189
+#define MSG_E2                              " E2"
190
+#endif
191
+#ifndef MSG_E3
192
+#define MSG_E3                              " E3"
193
+#endif
194
+#ifndef MSG_E4
195
+#define MSG_E4                              " E4"
196
+#endif
155 197
 #ifndef MSG_ACC
156 198
 #define MSG_ACC                             "Accel"
157 199
 #endif
@@ -213,7 +255,7 @@
213 255
 #define MSG_VOLUMETRIC                      "Filament"
214 256
 #endif
215 257
 #ifndef MSG_VOLUMETRIC_ENABLED
216
-#define MSG_VOLUMETRIC_ENABLED		          "E in mm" STR_h3
258
+#define MSG_VOLUMETRIC_ENABLED		        "E in mm" STR_h3
217 259
 #endif
218 260
 #ifndef MSG_FILAMENT_SIZE_EXTRUDER_0
219 261
 #define MSG_FILAMENT_SIZE_EXTRUDER_0        "Fil. Dia. 1"

+ 16
- 6
Marlin/pins_RAMPS_13.h 파일 보기

@@ -122,12 +122,22 @@
122 122
 #ifdef ULTRA_LCD
123 123
 
124 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 142
     #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
133 143
       #define BEEPER 37

+ 17
- 4
Marlin/thermistortables.h 파일 보기

@@ -1096,13 +1096,26 @@ const short temptable_1047[][2] PROGMEM = {
1096 1096
 #endif
1097 1097
 
1098 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 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 1121
 #define _TT_NAME(_N) temptable_ ## _N

+ 696
- 878
Marlin/ultralcd.cpp
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


Loading…
취소
저장