Subversion Repositories group.electronics

Rev

Rev 54 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 55
Line 71... Line 71...
71
 
71
 
72
	return c;
72
	return c;
73
}
73
}
74
 
74
 
75
void lcd_overprint_right(char *str, uint8_t len, uint8_t col, uint8_t row) {
75
void lcd_overprint_right(char *str, uint8_t len, uint8_t col, uint8_t row) {
76
	uint8_t newcol = col + len;
76
	uint8_t c = 1;
77
	char* newstr = str + len;
77
	char* oldstr = str;
78
	uint8_t i;
-
 
79
	uint8_t stopbit = 0;
-
 
80
	lcd_setCursor(newcol, row);
-
 
81
	lcd_autocursorRight();
-
 
82
	for (i=0; i<len; i++) {
-
 
83
		if (newstr[0] == 0x00)
78
        while ((++str)[0] != 0x00)
84
			stopbit = 1;
79
                c++;
85
	
-
 
86
		if (stopbit)
-
 
87
			lcd_char(0x20);
-
 
88
		else
-
 
89
			lcd_char(newstr[0]);
-
 
90
 
80
 
-
 
81
	lcd_setCursor(col+1, row);
91
		newstr--;
82
	uint8_t i = 0;
-
 
83
	for (i = 0; i<(len-c); i++) 
-
 
84
		lcd_char(0x20);
92
	}
85
 
-
 
86
	for (i = 0; i<c; i++) 
93
	lcd_autocursorLeft();
87
		lcd_char(oldstr[i]);
94
}
88
}
95
 
89
 
96
uint8_t lcd_print(char* str) {
90
uint8_t lcd_print(char* str) {
97
        uint8_t c = 0;
91
        uint8_t c = 0;
98
        while ((str++)[0] != 0x00) {
92
        while ((str++)[0] != 0x00) {