1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
31
32
33
34
35
36
37
38
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
63
64
65
66
67
68
69
70
75
76
77
85
86
87
90
91
/* ... */
#include "main.h"
#include "lcd_log.h"
/* ... */
/* ... */
Includes
/* ... */
void Log_demo(void)
{
uint8_t i = 0;
LCD_LOG_Init();
LCD_LOG_SetHeader((uint8_t*)"This is the header");
LCD_LOG_SetFooter((uint8_t*)"This is the footer");
while(CheckForUserInput() == 0);
for (i = 0; i < 10; i++)
{
LCD_UsrLog ("This is Line %d \n", i);
HAL_Delay(100);
}for (i = 0; i < 10; i++) { ... }
HAL_Delay(1500);
LCD_LOG_ClearTextZone();
for (i = 0; i < 30; i++)
{
LCD_UsrLog ("This is Line %d \n", i);
HAL_Delay(100);
}for (i = 0; i < 30; i++) { ... }
while (1)
{
if(CheckForUserInput() > 0)
{
return;
}if (CheckForUserInput() > 0) { ... }
HAL_Delay (10);
}while (1) { ... }
}{ ... }
/* ... */
/* ... */