diff options
Diffstat (limited to 'lcd.c')
-rwxr-xr-x | lcd.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -65,6 +65,9 @@ void Lcd_Init() { Lcd_Cmd(0x03);
/////////////////////////////////////////////////////
Lcd_Cmd(0x02);
+#ifdef VFD
+ Vfd_Set_Brightness(0); //Set brightness to max
+#endif
Lcd_Cmd(0x02);
Lcd_Cmd(0x08);
Lcd_Cmd(0x00);
@@ -105,6 +108,12 @@ void Lcd_Shift_Left() { }
// For some VFD's like Noritake
+
void Vfd_Set_Brightness(int level) {
-
+ Lcd_Cmd(0x03);
+ __delay_ms(11);
+ Lcd_Cmd(0x03);
+ /////////////////////////////////////////////////////
+ Lcd_Cmd(0x02);
+ Lcd_Write_Char(level);
}
\ No newline at end of file |