diff options
-rw-r--r-- | display.c | 23 | ||||
-rw-r--r-- | display.h | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/display.c b/display.c new file mode 100644 index 0000000..cee2256 --- /dev/null +++ b/display.c @@ -0,0 +1,23 @@ +#include "display.h" + +void display_Intro() { + // Give an intro message on the LCD + Lcd_Clear(); + Lcd_Set_Cursor(1, 1); + Lcd_Write_String("RTC/LCD with PIC"); + Lcd_Set_Cursor(2, 1); + Lcd_Write_String(" Circuit Digest"); + __delay_ms(1000); //display for 1sec +} + +void display_Lcd_Layout() { + // Setup time date display format + Lcd_Clear(); + Lcd_Set_Cursor(1, 1); + Lcd_Write_String("HH:mm:ss -PP.P"); + Lcd_Write_Char(0xDF); + Lcd_Write_Char('C'); + Lcd_Set_Cursor(2, 1); + Lcd_Write_String("ddd, DD/MM/YY "); + __delay_ms(1000); +} diff --git a/display.h b/display.h new file mode 100644 index 0000000..3a9db75 --- /dev/null +++ b/display.h @@ -0,0 +1,4 @@ +#include "lcd.h" + +void display_Intro(); +void display_Lcd_Layout();
\ No newline at end of file |