Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 193 | eqlazer | 1 | #include <stdio.h> |
| 2 | #include <clcd20x4.h> |
||
| 3 | |||
| 4 | /* |
||
| 5 | * Prints "view" to LCD |
||
| 6 | */ |
||
| 7 | |||
| 8 | void printLCDview(uint8_t view){ |
||
| 9 | uint8_t line; |
||
| 10 | uint8_t buffer[ MAX_LENGTH ]; |
||
| 11 | lcd_clrscs(); |
||
| 12 | |||
| 13 | view = view*5; |
||
| 14 | |||
| 15 | /* Print first 3 lines */ |
||
| 16 | for(line = 0; line < LINES-1; line++ ){ |
||
| 17 | lcd_gotoxy(0,line); |
||
| 18 | lcd_puts( viewStrings[ view+line ] ); |
||
| 19 | } |
||
| 20 | |||
| 21 | /* Print bottom line */ |
||
| 22 | lcd_gotoxy(0,3); |
||
| 23 | snprintf( buffer, MAX_LENGTH, "<<%s", viewStrings[ view+3 ] ); |
||
| 24 | lcd_puts( buffer ); |
||
| 25 | |||
| 26 | lcd_gotoxy(9,3); |
||
| 27 | lcd_puts( EDIT_MODE_SYMBOL ); |
||
| 28 | |||
| 29 | lcd_gotoxy(18,3); |
||
| 30 | lcd_puts( ">>" ); |
||
| 31 | |||
| 32 | lcd_gotoxy(12,3); |
||
| 33 | lcd_puts( viewStrings[ view+4 ] ); |
||
| 34 | |||
| 35 | } |
||
| 36 | |||
| 37 | void printLCDviewData(){ |
||
| 38 | |||
| 39 | } |