@@ -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();
@@ -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)