aboutsummaryrefslogtreecommitdiffstats
path: root/lcd.c
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-07-28 01:09:20 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-07-28 01:09:20 -0500
commit2bb687d09947310d3e8c9a89d6932865912bc8b6 (patch)
treee4080068f9991c2c26a78130face5b134540d479 /lcd.c
parentdf35eab0e209a03118a3c71113b2d2817a14d874 (diff)
Add VFD brightness level.
Diffstat (limited to 'lcd.c')
-rwxr-xr-xlcd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lcd.c b/lcd.c
index b6d0ece..0ec8e38 100755
--- a/lcd.c
+++ b/lcd.c
@@ -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