1
0
Fork 0
forked from len0rd/rockbox

Use the defines, we can't assume a particular LCD or keypad.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@424 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-04 12:27:18 +00:00
parent f7a6c45c43
commit bd16e2fa94
5 changed files with 35 additions and 4 deletions

View file

@ -26,6 +26,8 @@
#include "tree.h"
#include "screensaver.h"
#ifdef HAVE_LCD_BITMAP
extern void tetris(void);
#define MENU_ITEM_FONT 0
@ -45,7 +47,7 @@ struct Menu_Items {
struct Menu_Items items[] = {
{ Tetris, "Tetris", tetris },
{ Screen_Saver, "Screen Saver", screensaver },
{ Browse, "Browse", dirbrowse },
{ Browse, "Browse", browse_root },
};
@ -154,5 +156,26 @@ void app_main(void)
}
}
#else
void app_main(void)
{
int key;
int cursor = 0;
lcd_puts(0,0, "Mooo!");
lcd_puts(1,1, " Rockbox!");
while(1) {
key = button_get();
if(!key) {
sleep(1);
continue;
}
}
}
#endif