Browse Source

merged with upstream and FIXED AGAIN bad translation commit

PLEASE BE MORE CAREFUL WHEN SUBMITTING NEW TRANSLATIONS

When you add new menu items / messages always copy them to ALL
languages (just use english)
stohn 12 years ago
parent
commit
1d224cc031
4 changed files with 363 additions and 23 deletions
  1. 27
    1
      Marlin/EEPROMwrite.h
  2. 19
    10
      Marlin/language.h
  3. 5
    1
      Marlin/ultralcd.h
  4. 312
    11
      Marlin/ultralcd.pde

+ 27
- 1
Marlin/EEPROMwrite.h View File

@@ -6,7 +6,13 @@
6 6
 #include "temperature.h"
7 7
 //#include <EEPROM.h>
8 8
 
9
+int plaPreheatHotendTemp;
10
+int plaPreheatHPBTemp;
11
+int plaPreheatFanSpeed;
9 12
 
13
+int absPreheatHotendTemp;
14
+int absPreheatHPBTemp;
15
+int absPreheatFanSpeed;
10 16
 
11 17
 template <class T> int EEPROM_writeAnything(int &ee, const T& value)
12 18
 {
@@ -38,7 +44,7 @@ template <class T> int EEPROM_readAnything(int &ee, T& value)
38 44
 // the default values are used whenever there is a change to the data, to prevent
39 45
 // wrong data being written to the variables.
40 46
 // ALSO:  always make sure the variables in the Store and retrieve sections are in the same order.
41
-#define EEPROM_VERSION "V06"
47
+#define EEPROM_VERSION "V07"
42 48
 
43 49
 inline void EEPROM_StoreSettings() 
44 50
 {
@@ -58,6 +64,12 @@ inline void EEPROM_StoreSettings()
58 64
   EEPROM_writeAnything(i,max_z_jerk);
59 65
   EEPROM_writeAnything(i,max_e_jerk);
60 66
   EEPROM_writeAnything(i,add_homeing);
67
+  EEPROM_writeAnything(i,plaPreheatHotendTemp);
68
+  EEPROM_writeAnything(i,plaPreheatHPBTemp);
69
+  EEPROM_writeAnything(i,plaPreheatFanSpeed);
70
+  EEPROM_writeAnything(i,absPreheatHotendTemp);
71
+  EEPROM_writeAnything(i,absPreheatHPBTemp);
72
+  EEPROM_writeAnything(i,absPreheatFanSpeed);
61 73
   #ifdef PIDTEMP
62 74
     EEPROM_writeAnything(i,Kp);
63 75
     EEPROM_writeAnything(i,Ki);
@@ -162,6 +174,12 @@ inline void EEPROM_RetrieveSettings(bool def=false)
162 174
       EEPROM_readAnything(i,max_z_jerk);
163 175
       EEPROM_readAnything(i,max_e_jerk);
164 176
       EEPROM_readAnything(i,add_homeing);
177
+	  EEPROM_readAnything(i,plaPreheatHotendTemp);
178
+	  EEPROM_readAnything(i,plaPreheatHPBTemp);
179
+	  EEPROM_readAnything(i,plaPreheatFanSpeed);
180
+	  EEPROM_readAnything(i,absPreheatHotendTemp);
181
+	  EEPROM_readAnything(i,absPreheatHPBTemp);
182
+	  EEPROM_readAnything(i,absPreheatFanSpeed);
165 183
       #ifndef PIDTEMP
166 184
         float Kp,Ki,Kd;
167 185
       #endif
@@ -195,6 +213,14 @@ inline void EEPROM_RetrieveSettings(bool def=false)
195 213
       add_homeing[0] = add_homeing[1] = add_homeing[2] = 0;
196 214
       SERIAL_ECHO_START;
197 215
       SERIAL_ECHOLN("Using Default settings:");
216
+#ifdef ULTIPANEL
217
+	  plaPreheatHotendTemp = PLA_PREHEAT_HOTEND_TEMP;
218
+	  plaPreheatHPBTemp = PLA_PREHEAT_HPB_TEMP;
219
+	  plaPreheatFanSpeed = PLA_PREHEAT_FAN_SPEED;
220
+	  absPreheatHotendTemp = ABS_PREHEAT_HOTEND_TEMP;
221
+	  absPreheatHPBTemp = ABS_PREHEAT_HPB_TEMP;
222
+	  absPreheatFanSpeed = ABS_PREHEAT_FAN_SPEED;
223
+#endif
198 224
     }
199 225
   #ifdef EEPROM_CHITCHAT
200 226
     EEPROM_printSettings();

+ 19
- 10
Marlin/language.h View File

@@ -40,6 +40,10 @@
40 40
 	#define MSG_DISABLE_STEPPERS " Disable Steppers"
41 41
 	#define MSG_AUTO_HOME " Auto Home"
42 42
 	#define MSG_SET_ORIGIN " Set Origin"
43
+	#define MSG_PREHEAT_PLA " Preheat PLA"
44
+	#define MSG_PREHEAT_PLA_SETTINGS " Preheat PLA Setting"
45
+	#define MSG_PREHEAT_ABS " Preheat ABS"
46
+	#define MSG_PREHEAT_ABS_SETTINGS " Preheat ABS Setting"
43 47
 	#define MSG_COOLDOWN " Cooldown"
44 48
 	#define MSG_EXTRUDE " Extrude"
45 49
 	#define MSG_RETRACT " Retract"
@@ -82,6 +86,7 @@
82 86
 	#define MSG_MAIN_WIDE " Main        \003"
83 87
 	#define MSG_RECTRACT_WIDE " Rectract    \x7E"
84 88
 	#define MSG_TEMPERATURE_WIDE " Temperature \x7E"
89
+	#define MSG_TEMPERATURE_RTN " Temperature  \003"
85 90
 	#define MSG_MOTION_WIDE " Motion      \x7E"
86 91
 	#define MSG_STORE_EPROM " Store memory"
87 92
 	#define MSG_LOAD_EPROM " Load memory"
@@ -105,13 +110,13 @@
105 110
 	#define MSG_KILLED "KILLED. "
106 111
 	#define MSG_STOPPED "STOPPED. "
107 112
 	#define MSG_STEPPER_RELEASED "Released."
108
-        #define MSG_CONTROL_RETRACT  " Retract mm:"
109
-        #define MSG_CONTROL_RETRACTF " Retract  F:"
110
-        #define MSG_CONTROL_RETRACT_ZLIFT " Hop mm:"
111
-        #define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
112
-        #define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
113
-        #define MSG_AUTORETRACT " AutoRetr.:"
114
-	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
113
+	#define MSG_CONTROL_RETRACT  " Retract mm:"
114
+	#define MSG_CONTROL_RETRACTF " Retract  F:"
115
+	#define MSG_CONTROL_RETRACT_ZLIFT " Hop mm:"
116
+	#define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
117
+	#define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
118
+	#define MSG_AUTORETRACT " AutoRetr.:"
119
+        #define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
115 120
 
116 121
 // Serial Console Messages
117 122
 
@@ -194,7 +199,9 @@
194 199
 	#define MSG_AUTO_HOME        " Auto Nullpunkt"
195 200
 	#define MSG_SET_ORIGIN       " Setze Nullpunkt"
196 201
 	#define MSG_PREHEAT_PLA      " Vorwärmen PLA"
202
+	#define MSG_PREHEAT_PLA_SETTINGS " Vorwärmen PLA Einstellungen"
197 203
 	#define MSG_PREHEAT_ABS      " Vorwärmen ABS"
204
+	#define MSG_PREHEAT_ABS_SETTINGS "  Vorwärmen ABS Einstellungen"
198 205
 	#define MSG_COOLDOWN         " Abkühlen"
199 206
 	#define MSG_EXTRUDE          " Extrude"
200 207
 	#define MSG_RETRACT          " Retract"
@@ -236,6 +243,7 @@
236 243
 	#define MSG_RECTRACT_WIDE    " Rectract      \x7E"
237 244
 	#define MSG_WATCH            " Beobachten    \003"
238 245
 	#define MSG_TEMPERATURE_WIDE " Temperatur    \x7E"
246
+        #define MSG_TEMPERATURE_RTN  " Temperatur    \003"
239 247
 	#define MSG_MOTION_WIDE      " Bewegung      \x7E"
240 248
 	#define MSG_STORE_EPROM      " EPROM speichern"
241 249
 	#define MSG_LOAD_EPROM       " EPROM laden"
@@ -348,7 +356,9 @@
348 356
 #define MSG_EXTRUDE " Extruir"
349 357
 #define MSG_RETRACT " Retract"
350 358
 #define MSG_PREHEAT_PLA " Precalentar PLA"
359
+#define MSG_PREHEAT_PLA_SETTINGS " Precalentar PLA Setting"
351 360
 #define MSG_PREHEAT_ABS " Precalentar ABS"
361
+#define MSG_PREHEAT_ABS_SETTINGS " Precalentar ABS Setting"
352 362
 #define MSG_MOVE_AXIS " Mover Ejes      \x7E"
353 363
 #define MSG_SPEED " Velocidad:"
354 364
 #define MSG_NOZZLE " \002Nozzle:"
@@ -386,6 +396,7 @@
386 396
 #define MSG_MAIN_WIDE " Menu Principal  \003"
387 397
 #define MSG_RECTRACT_WIDE " Retraer         \x7E"
388 398
 #define MSG_TEMPERATURE_WIDE " Temperatura     \x7E"
399
+#define MSG_TEMPERATURE_RTN  " Temperatura     \003"
389 400
 #define MSG_MOTION_WIDE " Movimiento      \x7E"
390 401
 #define MSG_STORE_EPROM " Guardar Memoria"
391 402
 #define MSG_LOAD_EPROM " Cargar Memoria"
@@ -402,15 +413,12 @@
402 413
 #define MSG_STOP_PRINT " Detener Impresion \x7E"
403 414
 #define MSG_CARD_MENU " Menu de SD    \x7E"
404 415
 #define MSG_NO_CARD " No hay Tarjeta SD"
405
-#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
406 416
 #define MSG_DWELL "Reposo..."
407 417
 #define MSG_USERWAIT "Esperando Ordenes..."
408 418
 #define MSG_NO_MOVE "Sin movimiento"
409 419
 #define MSG_PART_RELEASE "Desacople Parcial"
410 420
 #define MSG_KILLED "PARADA DE EMERGENCIA. "
411 421
 #define MSG_STOPPED "PARADA. "
412
-#define MSG_PREHEAT_PLA " Precalentar PLA"
413
-#define MSG_PREHEAT_ABS " Precalentar ABS"
414 422
 #define MSG_STEPPER_RELEASED "Desacoplada."
415 423
 #define MSG_CONTROL_RETRACT  " Retraer mm:"
416 424
 #define MSG_CONTROL_RETRACTF " Retraer  F:"
@@ -418,6 +426,7 @@
418 426
 #define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
419 427
 #define MSG_CONTROL_RETRACT_RECOVERF " DesRet F:"
420 428
 #define MSG_AUTORETRACT " AutoRetr.:"
429
+#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
421 430
 
422 431
 // Serial Console Messages
423 432
 

+ 5
- 1
Marlin/ultralcd.h View File

@@ -46,12 +46,14 @@
46 46
     #define BLOCK {blocking[BL_MI]=millis()+blocktime;blocking[BL_ST]=millis()+blocktime;}
47 47
     
48 48
   #endif
49
+
50
+
49 51
     
50 52
   // blocking time for recognizing a new keypress of one key, ms
51 53
   #define blocktime 500
52 54
   #define lcdslow 5
53 55
     
54
-  enum MainStatus{Main_Status, Main_Menu, Main_Prepare,Sub_PrepareMove, Main_Control, Main_SD,Sub_TempControl,Sub_MotionControl,Sub_RetractControl};
56
+  enum MainStatus{Main_Status, Main_Menu, Main_Prepare,Sub_PrepareMove, Main_Control, Main_SD,Sub_TempControl,Sub_MotionControl,Sub_RetractControl, Sub_PreheatPLASettings, Sub_PreheatABSSettings};
55 57
 
56 58
   class MainMenu{
57 59
   public:
@@ -71,6 +73,8 @@
71 73
     void showControlRetract();
72 74
     void showAxisMove();
73 75
     void showSD();
76
+	void showPLAsettings();
77
+	void showABSsettings();
74 78
     bool force_lcd_update;
75 79
     long lastencoderpos;
76 80
     int8_t lineoffset;

+ 312
- 11
Marlin/ultralcd.pde View File

@@ -534,17 +534,17 @@ void MainMenu::showPrepare()
534 534
       MENUITEM(  lcdprintPGM(MSG_SET_ORIGIN)  ,  BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
535 535
       break;
536 536
     case ItemP_preheat_pla:
537
-      MENUITEM(  lcdprintPGM(MSG_PREHEAT_PLA)  ,  BLOCK;setTargetHotend0(PLA_PREHEAT_HOTEND_TEMP);setTargetBed(PLA_PREHEAT_HPB_TEMP);
537
+		MENUITEM(  lcdprintPGM(MSG_PREHEAT_PLA)  ,  BLOCK;setTargetHotend0(plaPreheatHotendTemp);setTargetBed(plaPreheatHPBTemp);
538 538
       #if FAN_PIN > -1
539
-		FanSpeed=PLA_PREHEAT_FAN_SPEED;
539
+		FanSpeed = plaPreheatFanSpeed;
540 540
         analogWrite(FAN_PIN,  FanSpeed);
541 541
       #endif
542 542
       beepshort(); );
543 543
       break;
544 544
     case ItemP_preheat_abs:
545
-      MENUITEM(  lcdprintPGM(MSG_PREHEAT_ABS)  ,  BLOCK;setTargetHotend0(ABS_PREHEAT_HOTEND_TEMP);setTargetBed(ABS_PREHEAT_HPB_TEMP); 
545
+      MENUITEM(  lcdprintPGM(MSG_PREHEAT_ABS)  ,  BLOCK;setTargetHotend0(absPreheatHotendTemp);setTargetBed(absPreheatHPBTemp); 
546 546
       #if FAN_PIN > -1
547
-	  	FanSpeed=ABS_PREHEAT_FAN_SPEED;
547
+	  	FanSpeed = absPreheatFanSpeed;
548 548
         analogWrite(FAN_PIN,  FanSpeed);
549 549
       #endif
550 550
       beepshort(); );
@@ -795,7 +795,7 @@ void MainMenu::showTune()
795 795
         {
796 796
           lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
797 797
           lcd.setCursor(13,line);lcd.print(ftostr3(intround(degTargetHotend0())));
798
-        }
798
+        } 
799 799
         
800 800
         if((activeline!=line) )
801 801
           break;
@@ -973,7 +973,9 @@ enum {
973 973
 ItemCT_bed,
974 974
 #endif  
975 975
   ItemCT_fan,
976
-  ItemCT_PID_P,ItemCT_PID_I,ItemCT_PID_D,ItemCT_PID_C
976
+  ItemCT_PID_P,ItemCT_PID_I,ItemCT_PID_D,ItemCT_PID_C,
977
+  ItemCT_PLA_PreHeat_Setting, 
978
+  ItemCT_ABS_PreHeat_Setting,
977 979
 };
978 980
 
979 981
 void MainMenu::showControlTemp()
@@ -1440,16 +1442,19 @@ void MainMenu::showControlTemp()
1440 1442
       #endif
1441 1443
     #endif
1442 1444
       break;
1445
+	  case ItemCT_PLA_PreHeat_Setting:
1446
+        MENUITEM(  lcdprintPGM(MSG_PREHEAT_PLA_SETTINGS)  ,  BLOCK;status=Sub_PreheatPLASettings;beepshort(); ) ;
1447
+	  break;
1448
+	  case ItemCT_ABS_PreHeat_Setting:
1449
+        MENUITEM(  lcdprintPGM(MSG_PREHEAT_ABS_SETTINGS)  ,  BLOCK;status=Sub_PreheatABSSettings;beepshort(); ) ;
1450
+	  break;
1443 1451
     default:   
1444 1452
       break;
1445 1453
   }
1446 1454
   line++;
1447 1455
  }
1448
- #ifdef PID_ADD_EXTRUSION_RATE
1449
-  updateActiveLines(ItemCT_PID_C,encoderpos);
1450
- #else
1451
-  updateActiveLines(ItemCT_PID_D,encoderpos);
1452
- #endif
1456
+
1457
+  updateActiveLines(ItemCT_ABS_PreHeat_Setting,encoderpos);
1453 1458
 }
1454 1459
 
1455 1460
 
@@ -2575,6 +2580,14 @@ void MainMenu::update()
2575 2580
       {
2576 2581
         showSD();
2577 2582
       }break;
2583
+	  case Sub_PreheatPLASettings: 
2584
+      {
2585
+        showPLAsettings();
2586
+      }break;
2587
+	  case Sub_PreheatABSSettings: 
2588
+      {
2589
+        showABSsettings();
2590
+      }break;
2578 2591
   }
2579 2592
   
2580 2593
   if(timeoutToStatus<millis())
@@ -2583,11 +2596,299 @@ void MainMenu::update()
2583 2596
   lastencoderpos=encoderpos;
2584 2597
 }
2585 2598
 
2599
+enum {
2600
+	ItemPLAPreHeat_Exit, 
2601
+	ItemPLAPreHeat_set_PLA_FanSpeed, 
2602
+	ItemPLAPreHeat_set_nozzle, 
2603
+	ItemPLAPreHeat_set_HPB,
2604
+	ItemPLAPreHeat_Store_Eprom
2605
+	};
2606
+  
2607
+void MainMenu::showPLAsettings()
2608
+{
2609
+#ifdef ULTIPANEL
2610
+ uint8_t line=0;
2611
+ clearIfNecessary();
2612
+ for(int8_t i=lineoffset;i<lineoffset+LCD_HEIGHT;i++)
2613
+ {
2614
+  switch(i)
2615
+  {
2586 2616
 
2617
+	case ItemPLAPreHeat_Exit:
2618
+      MENUITEM(  lcdprintPGM(MSG_TEMPERATURE_RTN)  ,  BLOCK;status=Sub_TempControl;beepshort(); ) ;
2619
+      break;
2587 2620
 
2621
+    case ItemPLAPreHeat_set_PLA_FanSpeed:
2622
+       {
2623
+        if(force_lcd_update)
2624
+        {
2625
+          lcd.setCursor(0,line);lcdprintPGM(MSG_FAN_SPEED);
2626
+          lcd.setCursor(13,line);lcd.print(ftostr3(plaPreheatFanSpeed));
2627
+        }
2628
+        
2629
+        if((activeline!=line) )
2630
+          break;
2631
+        
2632
+        if(CLICKED) 
2633
+        {
2634
+          linechanging=!linechanging;
2635
+          if(linechanging)
2636
+          {
2637
+			  encoderpos=plaPreheatFanSpeed;
2638
+          }
2639
+          else
2640
+          {
2641
+            encoderpos=activeline*lcdslow;
2642
+            beepshort();
2643
+          }
2644
+          BLOCK;
2645
+        }
2646
+        if(linechanging)
2647
+        {
2648
+          if(encoderpos<0) encoderpos=0;
2649
+          if(encoderpos>255) encoderpos=255;
2650
+          plaPreheatFanSpeed=encoderpos;
2651
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2652
+        }
2653
+      }break;
2588 2654
 
2655
+    case ItemPLAPreHeat_set_nozzle:
2656
+      {
2657
+        if(force_lcd_update)
2658
+        {
2659
+          lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
2660
+          lcd.setCursor(13,line);lcd.print(ftostr3(plaPreheatHotendTemp));
2661
+        } 
2662
+        
2663
+        if((activeline!=line) )
2664
+          break;
2665
+        
2666
+        if(CLICKED)
2667
+        {
2668
+          linechanging=!linechanging;
2669
+          if(linechanging)
2670
+          {
2671
+              encoderpos=plaPreheatHotendTemp;
2672
+          }
2673
+          else
2674
+          {
2675
+            encoderpos=activeline*lcdslow;
2676
+            beepshort();
2677
+          }
2678
+          BLOCK;
2679
+        }
2680
+        if(linechanging)
2681
+        {
2682
+          if(encoderpos<0) encoderpos=0;
2683
+          if(encoderpos>260) encoderpos=260;
2684
+		  plaPreheatHotendTemp = encoderpos;
2685
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2686
+        }
2687
+      }break;
2589 2688
 
2689
+    case ItemPLAPreHeat_set_HPB:
2690
+      {
2691
+        if(force_lcd_update)
2692
+        {
2693
+          lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
2694
+          lcd.setCursor(13,line);lcd.print(ftostr3(plaPreheatHPBTemp));
2695
+        } 
2696
+        
2697
+        if((activeline!=line) )
2698
+          break;
2699
+        
2700
+        if(CLICKED)
2701
+        {
2702
+          linechanging=!linechanging;
2703
+          if(linechanging)
2704
+          {
2705
+              encoderpos=plaPreheatHPBTemp;
2706
+          }
2707
+          else
2708
+          {
2709
+            encoderpos=activeline*lcdslow;
2710
+            beepshort();
2711
+          }
2712
+          BLOCK;
2713
+        }
2714
+        if(linechanging)
2715
+        {
2716
+          if(encoderpos<0) encoderpos=0;
2717
+          if(encoderpos>250) encoderpos=150;
2718
+		  plaPreheatHPBTemp = encoderpos;
2719
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2720
+        }
2721
+      }break;
2722
+	case ItemPLAPreHeat_Store_Eprom:
2723
+    {
2724
+      if(force_lcd_update)
2725
+      {
2726
+        lcd.setCursor(0,line);lcdprintPGM(MSG_STORE_EPROM);
2727
+      }
2728
+      if((activeline==line) && CLICKED)
2729
+      {
2730
+        //enquecommand("M84");
2731
+        beepshort();
2732
+        BLOCK;
2733
+        EEPROM_StoreSettings();
2734
+      }
2735
+    }break;
2736
+      default:   
2737
+      break;
2738
+  }
2739
+  line++;
2740
+ }
2741
+ updateActiveLines(ItemPLAPreHeat_Store_Eprom,encoderpos);
2742
+#endif
2743
+}
2744
+
2745
+enum {
2746
+	ItemABSPreHeat_Exit, 
2747
+	ItemABSPreHeat_set_FanSpeed, 
2748
+	ItemABSPreHeat_set_nozzle, 
2749
+	ItemABSPreHeat_set_HPB,
2750
+	ItemABSPreHeat_Store_Eprom
2751
+	};
2752
+
2753
+void MainMenu::showABSsettings()
2754
+{
2755
+#ifdef ULTIPANEL
2756
+ uint8_t line=0;
2757
+ clearIfNecessary();
2758
+ for(int8_t i=lineoffset;i<lineoffset+LCD_HEIGHT;i++)
2759
+ {
2760
+  switch(i)
2761
+  {
2762
+
2763
+	case ItemABSPreHeat_Exit:
2764
+      MENUITEM(  lcdprintPGM(MSG_TEMPERATURE_RTN)  ,  BLOCK;status=Sub_TempControl;beepshort(); ) ;
2765
+      break;
2766
+
2767
+    case ItemABSPreHeat_set_FanSpeed:
2768
+       {
2769
+        if(force_lcd_update)
2770
+        {
2771
+          lcd.setCursor(0,line);lcdprintPGM(MSG_FAN_SPEED);
2772
+          lcd.setCursor(13,line);lcd.print(ftostr3(absPreheatFanSpeed));
2773
+        }
2774
+        
2775
+        if((activeline!=line) )
2776
+          break;
2777
+        
2778
+        if(CLICKED) 
2779
+        {
2780
+          linechanging=!linechanging;
2781
+          if(linechanging)
2782
+          {
2783
+			  encoderpos=absPreheatFanSpeed;
2784
+          }
2785
+          else
2786
+          {
2787
+            encoderpos=activeline*lcdslow;
2788
+            beepshort();
2789
+          }
2790
+          BLOCK;
2791
+        }
2792
+        if(linechanging)
2793
+        {
2794
+          if(encoderpos<0) encoderpos=0;
2795
+          if(encoderpos>255) encoderpos=255;
2796
+          absPreheatFanSpeed=encoderpos;
2797
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2798
+        }
2799
+      }break;
2800
+
2801
+    case ItemABSPreHeat_set_nozzle:
2802
+      {
2803
+        if(force_lcd_update)
2804
+        {
2805
+          lcd.setCursor(0,line);lcdprintPGM(MSG_NOZZLE);
2806
+          lcd.setCursor(13,line);lcd.print(ftostr3(absPreheatHotendTemp));
2807
+        } 
2808
+        
2809
+        if((activeline!=line) )
2810
+          break;
2811
+        
2812
+        if(CLICKED)
2813
+        {
2814
+          linechanging=!linechanging;
2815
+          if(linechanging)
2816
+          {
2817
+              encoderpos=absPreheatHotendTemp;
2818
+          }
2819
+          else
2820
+          {
2821
+            encoderpos=activeline*lcdslow;
2822
+            beepshort();
2823
+          }
2824
+          BLOCK;
2825
+        }
2826
+        if(linechanging)
2827
+        {
2828
+          if(encoderpos<0) encoderpos=0;
2829
+          if(encoderpos>260) encoderpos=260;
2830
+		  absPreheatHotendTemp = encoderpos;
2831
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2832
+        }
2833
+      }break;
2834
+
2835
+    case ItemABSPreHeat_set_HPB:
2836
+      {
2837
+        if(force_lcd_update)
2838
+        {
2839
+          lcd.setCursor(0,line);lcdprintPGM(MSG_BED);
2840
+          lcd.setCursor(13,line);lcd.print(ftostr3(absPreheatHPBTemp));
2841
+        } 
2842
+        
2843
+        if((activeline!=line) )
2844
+          break;
2845
+        
2846
+        if(CLICKED)
2847
+        {
2848
+          linechanging=!linechanging;
2849
+          if(linechanging)
2850
+          {
2851
+              encoderpos=absPreheatHPBTemp;
2852
+          }
2853
+          else
2854
+          {
2855
+            encoderpos=activeline*lcdslow;
2856
+            beepshort();
2857
+          }
2858
+          BLOCK;
2859
+        }
2860
+        if(linechanging)
2861
+        {
2862
+          if(encoderpos<0) encoderpos=0;
2863
+          if(encoderpos>250) encoderpos=150;
2864
+		  absPreheatHPBTemp = encoderpos;
2865
+          lcd.setCursor(13,line);lcd.print(itostr3(encoderpos));
2866
+        }
2867
+      }break;
2868
+	case ItemABSPreHeat_Store_Eprom:
2869
+    {
2870
+      if(force_lcd_update)
2871
+      {
2872
+        lcd.setCursor(0,line);lcdprintPGM(MSG_STORE_EPROM);
2873
+      }
2874
+      if((activeline==line) && CLICKED)
2875
+      {
2876
+        //enquecommand("M84");
2877
+        beepshort();
2878
+        BLOCK;
2879
+        EEPROM_StoreSettings();
2880
+      }
2881
+    }break;
2882
+      default:   
2883
+      break;
2884
+  }
2885
+  line++;
2886
+ }
2887
+ updateActiveLines(ItemABSPreHeat_Store_Eprom,encoderpos);
2888
+#endif
2889
+}
2590 2890
 
2891
+//**********************************************************************************************************
2591 2892
 //  convert float to string with +123.4 format
2592 2893
 char *ftostr3(const float &x)
2593 2894
 {

Loading…
Cancel
Save