Преглед на файлове

Merge branch 'Marlin_v1' of github.com:ErikZalm/Marlin into Marlin_v1

daid303 преди 12 години
родител
ревизия
5df5e4c4a2
променени са 5 файла, в които са добавени 31 реда и са изтрити 19 реда
  1. 8
    18
      Marlin/language.h
  2. 3
    0
      Marlin/pins.h
  3. 4
    0
      Marlin/planner.cpp
  4. 15
    0
      Marlin/temperature.cpp
  5. 1
    1
      Marlin/ultralcd_implementation_hitachi_HD44780.h

+ 8
- 18
Marlin/language.h Целия файл

@@ -51,8 +51,6 @@
51 51
 	#define MSG_COOLDOWN "Cooldown"
52 52
 	#define MSG_EXTRUDE "Extrude"
53 53
 	#define MSG_RETRACT "Retract"
54
-	#define MSG_PREHEAT_PLA "Preheat PLA"
55
-	#define MSG_PREHEAT_ABS "Preheat ABS"
56 54
 	#define MSG_MOVE_AXIS "Move Axis"
57 55
 	#define MSG_SPEED "Speed"
58 56
 	#define MSG_NOZZLE "Nozzle"
@@ -814,7 +812,7 @@
814 812
 #if LANGUAGE_CHOICE == 6
815 813
 
816 814
 // LCD Menu Messages
817
-#define WELCOME_MSG MACHINE_NAME			" Готов."
815
+#define WELCOME_MSG MACHINE_NAME			" Готов"
818 816
 #define MSG_SD_INSERTED						"Карта вставлена"
819 817
 #define MSG_SD_REMOVED						"Карта извлечена"
820 818
 #define MSG_MAIN							" Меню              \003"
@@ -863,21 +861,16 @@
863 861
 #define MSG_YSTEPS							" Y шаг/mm:"
864 862
 #define MSG_ZSTEPS							" Z шаг/mm:"
865 863
 #define MSG_ESTEPS							" E шаг/mm:"
866
-#define MSG_MAIN_WIDE						" Меню              \003"
867
-#define MSG_RECTRACT_WIDE					" Откат подачи      \x7E"
868
-#define MSG_TEMPERATURE_WIDE				" Температура       \x7E"
869
-#define MSG_TEMPERATURE_RTN					" Температура       \003"
870
-#define MSG_MOTION_WIDE						" Скорости          \x7E"
864
+#define MSG_RECTRACT    					" Откат подачи      \x7E"
865
+#define MSG_TEMPERATURE  				" Температура       \x7E"
866
+#define MSG_MOTION						" Скорости          \x7E"
871 867
 #define MSG_STORE_EPROM						" Сохранить настройки"
872 868
 #define MSG_LOAD_EPROM						" Загрузить настройки"
873 869
 #define MSG_RESTORE_FAILSAFE				" Сброс настроек     "
874 870
 #define MSG_REFRESH							"\004Обновить           "
875 871
 #define MSG_WATCH							" Обзор             \003"
876 872
 #define MSG_PREPARE							" Действия          \x7E"
877
-#define MSG_PREPARE_ALT						" Действия          \003"
878
-#define MSG_CONTROL_ARROW					" Настройки         \x7E"
879
-#define MSG_RETRACT_ARROW					" Настройки отката  \x7E"
880
-#define MSG_TUNE							" Tune              \x7E"
873
+#define MSG_TUNE					" Настройки         \x7E"
881 874
 #define MSG_PAUSE_PRINT						" Пауза печати      \x7E"
882 875
 #define MSG_RESUME_PRINT					" Продолжить печать \x7E"
883 876
 #define MSG_STOP_PRINT						" Остановить печать \x7E"
@@ -889,7 +882,6 @@
889 882
 #define MSG_PART_RELEASE					" Извлечение принта  "
890 883
 #define MSG_KILLED							"УБИТО. "
891 884
 #define MSG_STOPPED							"ОСТАНОВЛЕНО. "
892
-#define MSG_STEPPER_RELEASED				"Двигатели отключены."
893 885
 #define MSG_CONTROL_RETRACT					" Откат mm:"
894 886
 #define MSG_CONTROL_RETRACTF				" Откат  F:"
895 887
 #define MSG_CONTROL_RETRACT_ZLIFT			" Прыжок mm:"
@@ -941,7 +933,9 @@
941 933
 #define MSG_Y_MAX							"y_max:"
942 934
 #define MSG_Z_MIN							"z_min:"
943 935
 #define MSG_Z_MAX							"z_max:"
944
-
936
+#define MSG_M119_REPORT						"Статус концевиков"
937
+#define MSG_ENDSTOP_HIT						"Срабатывание концевика"
938
+#define MSG_ENDSTOP_OPEN					"Концевик освобожден"
945 939
 #define MSG_SD_CANT_OPEN_SUBDIR				"Не открыть папку"
946 940
 #define MSG_SD_INIT_FAIL					"Ошибка инициализации SD"
947 941
 #define MSG_SD_VOL_INIT_FAIL				"Ошибка инициализации раздела"
@@ -957,14 +951,10 @@
957 951
 #define MSG_SD_NOT_PRINTING					"нет SD печати"
958 952
 #define MSG_SD_ERR_WRITE_TO_FILE			"ошибка записи в файл"
959 953
 #define MSG_SD_CANT_ENTER_SUBDIR			"Не зайти в папку:"
960
-
961 954
 #define MSG_STEPPER_TO_HIGH					"Частота шагов очень высока : "
962 955
 #define MSG_ENDSTOPS_HIT					"концевик сработал: "
963 956
 #define MSG_ERR_COLD_EXTRUDE_STOP			" защита холодной экструзии"
964 957
 #define MSG_ERR_LONG_EXTRUDE_STOP			" защита превышения длинны экструзии"
965
-#define MSG_M119_REPORT						"Статус концевиков"
966
-#define MSG_ENDSTOP_HIT						"Срабатывание концевика"
967
-#define MSG_ENDSTOP_OPEN					"Концевик освобожден"
968 958
 
969 959
 #endif
970 960
 

+ 3
- 0
Marlin/pins.h Целия файл

@@ -709,6 +709,9 @@
709 709
 #define LED_PIN            -1
710 710
 
711 711
 #define FAN_PIN            -1 
712
+#if FAN_PIN == 12 || FAN_PIN ==13
713
+#define FAN_SOFT_PWM
714
+#endif
712 715
 
713 716
 #ifdef MELZI
714 717
 #define LED_PIN            28

+ 4
- 0
Marlin/planner.cpp Целия файл

@@ -460,10 +460,12 @@ void check_axes_activity()
460 460
   else
461 461
   {
462 462
     #if FAN_PIN > -1
463
+    #ifndef FAN_SOFT_PWM
463 464
     if (fanSpeed != 0){
464 465
       analogWrite(FAN_PIN,fanSpeed); // If buffer is empty use current fan speed
465 466
     }
466 467
     #endif
468
+	#endif
467 469
   }
468 470
   if((DISABLE_X) && (x_active == 0)) disable_x();
469 471
   if((DISABLE_Y) && (y_active == 0)) disable_y();
@@ -475,6 +477,7 @@ void check_axes_activity()
475 477
     disable_e2(); 
476 478
   }
477 479
 #if FAN_PIN > -1
480
+  #ifndef FAN_SOFT_PWM
478 481
   if((fanSpeed == 0) && (fan_speed ==0))
479 482
   {
480 483
     analogWrite(FAN_PIN, 0);
@@ -484,6 +487,7 @@ void check_axes_activity()
484 487
   {
485 488
     analogWrite(FAN_PIN,tail_fan_speed);
486 489
   }
490
+  #endif
487 491
 #endif
488 492
 #ifdef AUTOTEMP
489 493
   getHighESpeed();

+ 15
- 0
Marlin/temperature.cpp Целия файл

@@ -96,6 +96,11 @@ static volatile bool temp_meas_ready = false;
96 96
 #endif //PIDTEMPBED
97 97
   static unsigned char soft_pwm[EXTRUDERS];
98 98
   static unsigned char soft_pwm_bed;
99
+#ifdef FAN_SOFT_PWM
100
+  static unsigned char soft_pwm_fan;
101
+#endif
102
+
103
+
99 104
   
100 105
 #if EXTRUDERS > 3
101 106
 # error Unsupported number of extruders
@@ -597,6 +602,9 @@ void tp_init()
597 602
     #ifdef FAST_PWM_FAN
598 603
     setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
599 604
     #endif
605
+    #ifdef FAN_SOFT_PWM
606
+	soft_pwm_fan=(unsigned char)fanSpeed;
607
+	#endif
600 608
   #endif  
601 609
 
602 610
   #ifdef HEATER_0_USES_MAX6675
@@ -929,6 +937,10 @@ ISR(TIMER0_COMPB_vect)
929 937
     soft_pwm_b = soft_pwm_bed;
930 938
     if(soft_pwm_b > 0) WRITE(HEATER_BED_PIN,1);
931 939
     #endif
940
+    #ifdef FAN_SOFT_PWM
941
+    soft_pwm_fan =(unsigned char) fanSpeed;
942
+    if(soft_pwm_fan > 0) WRITE(FAN_PIN,1);
943
+    #endif
932 944
   }
933 945
   if(soft_pwm_0 <= pwm_count) WRITE(HEATER_0_PIN,0);
934 946
   #if EXTRUDERS > 1
@@ -940,6 +952,9 @@ ISR(TIMER0_COMPB_vect)
940 952
   #if HEATER_BED_PIN > -1
941 953
   if(soft_pwm_b <= pwm_count) WRITE(HEATER_BED_PIN,0);
942 954
   #endif
955
+  #ifdef FAN_SOFT_PWM
956
+  if(soft_pwm_fan <= pwm_count) WRITE(FAN_PIN,0);
957
+  #endif
943 958
   
944 959
   pwm_count++;
945 960
   pwm_count &= 0x7f;

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h Целия файл

@@ -25,7 +25,7 @@
25 25
 #define LCD_STR_CLOCK       "\x07"
26 26
 #define LCD_STR_ARROW_RIGHT "\x7E"  /* from the default character set */
27 27
 
28
-LiquidCrystal lcd(LCD_PINS_RS, LCD_PINS_ENABLE, LCD_PINS_D4, LCD_PINS_D5,LCD_PINS_D6,LCD_PINS_D7);  //RS,Enable,D4,D5,D6,D7
28
+LCD_CLASS lcd(LCD_PINS_RS, LCD_PINS_ENABLE, LCD_PINS_D4, LCD_PINS_D5,LCD_PINS_D6,LCD_PINS_D7);  //RS,Enable,D4,D5,D6,D7
29 29
 static void lcd_implementation_init()
30 30
 {
31 31
     byte bedTemp[8] =

Loading…
Отказ
Запис