Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char Cursor_GoToXY(unsigned char uchZeile, unsigned char uchSpalte)
- {
- const char lines[LINE_ANZ] = {LCD_ADDR_LINE1, LCD_ADDR_LINE2, LCD_ADDR_LINE3, LCD_ADDR_LINE4};
- // return to home
- //
- while((lines[uchZeile]+uchSpalte) != 0)
- {
- LCD_WriteIR(.....);//cursor um 1 nach rechts verschieben
- (lines[uchZeile]+uchSpalte)--;
- }
- }
- int x=0;
- int y=0;
- char putchar(char chc)
- {
- x++;
- if(x == 20)
- {
- y++;
- }
- if(chc = '\n')
- {
- }
- if(chc == '\t')
- {
- //if()
- Cursor_GoToXY(y,x);
- }
- if(chc == '\b')
- {
- }
- LCD_WriteDR(chc);
- return (chc);
- }
Advertisement
Add Comment
Please, Sign In to add comment