View difference between Paste ID: CtsH6K20 and MTbVDLth
SHOW: | | - or go back to the newest paste.
1-
int anz=-1;
1+
unsigned char Cursor_GoToXY(unsigned char uchZeile, unsigned char uchSpalte)
2
{
3
	const char lines[LINE_ANZ] = {LCD_ADDR_LINE1, LCD_ADDR_LINE2, LCD_ADDR_LINE3, LCD_ADDR_LINE4};
4
	// return to home
5
 	// 
6-
	anz++;
6+
	while((lines[uchZeile]+uchSpalte) != 0)
7
	{
8
       LCD_WriteIR(.....);//cursor um 1 nach rechts verschieben
9
	   (lines[uchZeile]+uchSpalte)--;
10
	}
11
}
12
	 
13
14
int x=0;
15-
       Cursor_GoToXY();	
15+
int y=0;
16
17
char putchar(char chc) 
18
{
19
	
20
	x++;
21
	
22
	if(x == 20) 
23
	{
24
	   y++;
25
	}   
26
27
    if(chc = '\n')
28
	{
29
	    
30
	}   
31
	
32
	if(chc == '\t')
33
    {
34
	   //if()
35
36
       Cursor_GoToXY(y,x);	
37
	} 
38
39
	if(chc == '\b')
40
	{
41
	    
42
	}
43
	
44
45
	LCD_WriteDR(chc);
46
	return (chc);
47
}