X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fbetty.c;h=163a8e23281eb97d2a5c71e1be8bd8bc8c9830c7;hb=818f43a5586b5c7fa441a8d44405d7b5279e8235;hp=ed4247588da8cf05551c866412431a4afd894b4e;hpb=ec21607f7dc421c6a474d93b90e9045ec465a222;p=my-code%2Farm.git diff --git a/betty/betty.c b/betty/betty.c index ed42475..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(); @@ -51,6 +50,7 @@ int main() { pause(0xffffff); /* display init */ + display_bl_toggle(); display_init(); contrast=0x38; @@ -80,11 +80,11 @@ int main() { contrast+=1; DISPLAY_SET_CONTRAST(contrast); break; + case BUTTON_TV: + display_fill_screen(button.key[0]); + break; default: - DISPLAY_SET_C_ADDR(0); - DISPLAY_SET_PAGE_ADDR(0); - for(cnt=0;cnt