-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.c
56 lines (50 loc) · 2.21 KB
/
application.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* File : application.c
* Author : Mohamed Ahmed Abdel Wahab
* LinkedIn : https://www.linkedin.com/in/mohamed-abdel-wahab-162413253/
* Github : https://github.com/moabdelwahab6611
* Created on May 21, 2023, 5:38 PM
*/
/**************************Includes-Section*****************************/
#include "application.h"
/***********************************************************************/
/***********************************************************************/
uint8 lcd_counter = ZERO_INT;
uint8 lcd_counter_txt[4];
const uint8 customChar1[] = {0x0E, 0x0A, 0x11, 0x11, 0x11, 0x11, 0x1F, 0x00};
const uint8 customChar2[] = {0x0E, 0x0A, 0x11, 0x11, 0x11, 0x1F, 0x1F, 0x00};
const uint8 customChar3[] = {0x0E, 0x0A, 0x11, 0x11, 0x1F, 0x1F, 0x1F, 0x00};
const uint8 customChar4[] = {0x0E, 0x0A, 0x11, 0x1F, 0x1F, 0x1F, 0x1F, 0x00};
const uint8 customChar5[] = {0x0E, 0x0A, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00};
const uint8 customChar6[] = {0x0E, 0x0E, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00};
/***********************************************************************/
/***********************Main Function-Section***************************/
int main()
{
Std_ReturnType ret = E_NOT_OK;
application_intialize();
while(1)
{
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar1, 0);
__delay_ms(200);
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar2, 0);
__delay_ms(200);
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar3, 0);
__delay_ms(200);
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar4, 0);
__delay_ms(200);
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar5, 0);
__delay_ms(200);
ret = lcd_8bit_send_custom_char(&lcd_2, 1, 20, customChar6, 0);
__delay_ms(200);
}
return (EXIT_SUCCESS);
}
/***********************************************************************/
/*************************Functions-Section*****************************/
void application_intialize(void)
{
Std_ReturnType ret = E_NOT_OK;
ecu_layer_intialize();
}
/***********************************************************************/