diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-07-28 01:09:20 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-07-28 01:09:20 -0500 |
commit | 2bb687d09947310d3e8c9a89d6932865912bc8b6 (patch) | |
tree | e4080068f9991c2c26a78130face5b134540d479 /lcd.c | |
parent | df35eab0e209a03118a3c71113b2d2817a14d874 (diff) |
Add VFD brightness level.
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 |