aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlcd.c6
-rwxr-xr-xlcd.h6
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