Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char putchar(char chc)
- {
- const char lines[LINE_ANZ] = {LCD_ADDR_LINE1, LCD_ADDR_LINE2, LCD_ADDR_LINE3, LCD_ADDR_LINE4};
- int anz = 0;
- if(chc = '\n')
- {
- }
- if(chc == '\t')
- {
- if(anz == 0 && anz <= lines[2])
- {
- Cursor_GoToXY(1,anz);
- }
- if(anz >= lines[1] && anz <= lines[3])
- {
- Cursor_GoToXY(2,anz);
- }
- if(anz >= lines[2] && anz <= 27)
- {
- Cursor_GoToXY(3,anz);
- }
- if(anz >= lines[3] && anz <= 67)
- {
- Cursor_GoToXY(4,anz);
- }
- }
- if(chc == '\b')
- {
- }
- anz++;
- LCD_WriteDR(chc);
- return (chc);
- }
Advertisement
Add Comment
Please, Sign In to add comment