From 260ec8ab0c1cff668a8bd209c28e5996a17993ff Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 7 Aug 2019 22:51:27 -0500 Subject: Add ifdef blocks if VFD is used for brightness --- lcd.c | 6 +++--- lcd.h | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lcd.c b/lcd.c index 5a4cede..8ebae1a 100755 --- a/lcd.c +++ b/lcd.c @@ -1,5 +1,4 @@ #include "lcd.h" -#include "conf.h" //LCD Functions Developed by electroSome @@ -108,7 +107,7 @@ void Lcd_Shift_Left(void) { } // For some VFD's like Noritake - +#ifdef VFD void Vfd_Set_Brightness(int level) { Lcd_Cmd(0x03); __delay_ms(11); @@ -116,4 +115,5 @@ void Vfd_Set_Brightness(int level) { ///////////////////////////////////////////////////// Lcd_Cmd(0x02); Lcd_Write_Char(level); -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/lcd.h b/lcd.h index 0f71b67..00f1805 100755 --- a/lcd.h +++ b/lcd.h @@ -1,3 +1,5 @@ +#include "conf.h" + void Lcd_Port(char); void Lcd_Cmd(char); void Lcd_Clear(void); @@ -9,4 +11,6 @@ void Lcd_Shift_Right(void); void Lcd_Shift_Left(void); // For some VFD's like Noritake -void Vfd_Set_Brightness(int); \ No newline at end of file +#ifdef VFD +void Vfd_Set_Brightness(int); +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf