Rev 203 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
41 | ingob | 1 | #ifndef _MENU_H |
2 | #define _MENU_H |
||
3 | |||
203 | killagreg | 4 | #include "printf_P.h" |
41 | ingob | 5 | |
6 | #define DISPLAYBUFFSIZE 80 |
||
7 | |||
201 | killagreg | 8 | #define KEY1 0x01 |
9 | #define KEY2 0x02 |
||
10 | #define KEY3 0x04 |
||
11 | #define KEY4 0x08 |
||
41 | ingob | 12 | |
201 | killagreg | 13 | |
203 | killagreg | 14 | |
41 | ingob | 15 | extern s8 DisplayBuff[DISPLAYBUFFSIZE]; |
1 | ingob | 16 | extern u8 DispPtr; |
41 | ingob | 17 | extern u8 MenuItem; |
18 | extern u8 MaxMenuItem; |
||
1 | ingob | 19 | |
203 | killagreg | 20 | void Menu_Update(u8 Keys); |
21 | void Menu_Clear(void); |
||
22 | void Menu_Putchar(char c); |
||
23 | |||
24 | #define LCD_printfxy(x,y,format, args...) { DispPtr = y * 20 + x; _printf_P(&Menu_Putchar, format , ## args);} |
||
25 | #define LCD_printf(format, args...) { _printf_P(&Menu_Putchar, format , ## args);} |
||
26 | |||
27 | |||
41 | ingob | 28 | #endif // _MENU_H |