Selaa lähdekoodia

LCD backlight - full brightnes at start

Robert Pelnar 5 vuotta sitten
vanhempi
commit
41b78187ca
2 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 4 0
      Firmware/Marlin_main.cpp
  2. 1 4
      Firmware/pins_Einsy_1_0.h

+ 4 - 0
Firmware/Marlin_main.cpp

@@ -974,6 +974,10 @@ void setup()
 	
 	ultralcd_init();
 
+#if (LCD_BL_PIN != -1)
+	analogWrite(LCD_BL_PIN, 255); //set full brightnes
+#endif //(LCD_BL_PIN != -1)
+
 	spi_init();
 
 	lcd_splash();

+ 1 - 4
Firmware/pins_Einsy_1_0.h

@@ -99,10 +99,7 @@
 
 //#define KILL_PIN            32
 
-
-//#define LCD_PWM_PIN         -1//32  // lcd backlight brightnes pwm control pin
-//#define LCD_PWM_MAX       0x0f  // lcd pwm maximum value (0x07=64Hz, 0x0f=32Hz, 0x1f=16Hz)
-
+#define LCD_BL_PIN          5   //backlight control pin
 #define BEEPER              84  // Beeper on AUX-4
 #define LCD_PINS_RS         82
 #define LCD_PINS_ENABLE     61 // !!! changed from 18 (EINY03)