Rev 201 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 201 | Rev 203 | ||
---|---|---|---|
1 | #ifndef _MENU_H |
1 | #ifndef _MENU_H |
2 | #define _MENU_H |
2 | #define _MENU_H |
- | 3 | ||
3 | 4 | #include "printf_P.h" |
|
4 | 5 | ||
5 | #define DISPLAYBUFFSIZE 80 |
6 | #define DISPLAYBUFFSIZE 80 |
6 | 7 | ||
7 | #define KEY1 0x01 |
8 | #define KEY1 0x01 |
8 | #define KEY2 0x02 |
9 | #define KEY2 0x02 |
9 | #define KEY3 0x04 |
10 | #define KEY3 0x04 |
10 | #define KEY4 0x08 |
11 | #define KEY4 0x08 |
11 | - | ||
12 | void Menu_Update(u8 Keys); |
- | |
- | 12 | ||
13 | void Menu_Clear(void); |
13 | |
14 | 14 | ||
15 | extern s8 DisplayBuff[DISPLAYBUFFSIZE]; |
15 | extern s8 DisplayBuff[DISPLAYBUFFSIZE]; |
16 | extern u8 DispPtr; |
16 | extern u8 DispPtr; |
17 | extern u8 MenuItem; |
17 | extern u8 MenuItem; |
18 | extern u8 MaxMenuItem; |
18 | extern u8 MaxMenuItem; |
- | 19 | ||
- | 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 | ||
19 | 27 | ||
20 | #endif // _MENU_H |
28 | #endif // _MENU_H |
21 | 29 |