From: hackbard Date: Thu, 13 Sep 2007 01:09:48 +0000 (+0200) Subject: stupid mistake fixed, display basically working now! X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818f43a5586b5c7fa441a8d44405d7b5279e8235;p=my-code%2Farm.git stupid mistake fixed, display basically working now! --- diff --git a/betty/betty.c b/betty/betty.c index e5923e9..163a8e2 100644 --- a/betty/betty.c +++ b/betty/betty.c @@ -23,7 +23,6 @@ int main() { char announce[]="betty - live from flash at 0x80000000! ;)\r\n"; t_button button; u8 contrast; - int cnt; /* system init */ pll_init(); @@ -81,6 +80,9 @@ int main() { contrast+=1; DISPLAY_SET_CONTRAST(contrast); break; + case BUTTON_TV: + display_fill_screen(button.key[0]); + break; default: display_clear_screen(); break; diff --git a/betty/display.c b/betty/display.c index e102141..b3d3e9c 100644 --- a/betty/display.c +++ b/betty/display.c @@ -14,7 +14,7 @@ * functions */ -void display_clear_screen(void) { +void display_fill_screen(u8 fill) { u8 page,width; @@ -22,12 +22,17 @@ void display_clear_screen(void) { DISPLAY_SET_C_ADDR(0); DISPLAY_SET_PAGE_ADDR(page); for(width=0;width