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
| void periode_of_lecture(void)
{
int prev_time4_lectures,time4_lectures;
unsigned char x;
prev_time4_lectures= Eeprom_Read(time4_lectures_address);
time4_lectures=prev_time4_lectures;
Lcd_Custom_Out(1, 1,"lecture time=");
//sprintf(buffer,"%d",time4_lectures);
//IntToStr(time4_lectures, txt);
Lcd_Custom_Out_Cp(buffer);
while(CANCEL==1)
{
if(UP==0)
{
while(UP==0);
x= time4_lectures+5;
//IntToStr(time4_lectures, txt);
// sprintf(buffer,"%d",time4_lectures);
Lcd_Custom_Out_Cp(48+x);// i use this line as examples in mikroc
// Lcd_Custom_Chr(1, 14,txt);
}
if(DOWN==0)
{
while(DOWN==0);
x=time4_lectures-5;
// sprintf(buffer,"%d",time4_lectures);
Lcd_Custom_Out_Cp(48+x);
// IntToStr(time4_lectures, txt);
// Lcd_Custom_Chr(1, 14,txt);
}
}
} |