aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-07-31 23:42:37 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-07-31 23:42:37 -0500
commit73f866c33baeddf60f6bff3121821a09b228a3e4 (patch)
tree05344f5125caf7a3cf9e10b6800f946d6d48dce8
parente9dd248cfad8edc4c5db91641d29a4d163dcaa4d (diff)
Complete definitions.
-rwxr-xr-xlcd.c8
-rwxr-xr-xlcd.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/lcd.c b/lcd.c
index 0ec8e38..5a4cede 100755
--- a/lcd.c
+++ b/lcd.c
@@ -33,7 +33,7 @@ void Lcd_Cmd(char a) {
EN = 0; // => E = 0
}
-void Lcd_Clear() {
+void Lcd_Clear(void) {
Lcd_Cmd(0);
Lcd_Cmd(1);
}
@@ -55,7 +55,7 @@ void Lcd_Set_Cursor(char a, char b) {
}
}
-void Lcd_Init() {
+void Lcd_Init(void) {
Lcd_Port(0x00);
__delay_ms(20);
Lcd_Cmd(0x03);
@@ -97,12 +97,12 @@ void Lcd_Write_String(char *a) {
Lcd_Write_Char(a[i]);
}
-void Lcd_Shift_Right() {
+void Lcd_Shift_Right(void) {
Lcd_Cmd(0x01);
Lcd_Cmd(0x0C);
}
-void Lcd_Shift_Left() {
+void Lcd_Shift_Left(void) {
Lcd_Cmd(0x01);
Lcd_Cmd(0x08);
}
diff --git a/lcd.h b/lcd.h
index 7c3af8a..0f71b67 100755
--- a/lcd.h
+++ b/lcd.h
@@ -1,12 +1,12 @@
void Lcd_Port(char);
void Lcd_Cmd(char);
-void Lcd_Clear();
+void Lcd_Clear(void);
void Lcd_Set_Cursor(char, char);
-void Lcd_Init();
+void Lcd_Init(void);
void Lcd_Write_Char(char);
void Lcd_Write_String(char *);
-void Lcd_Shift_Right();
-void Lcd_Shift_Left();
+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