char announce[]="betty - live from flash at 0x80000000! ;)\r\n";
t_button button;
u8 contrast;
- int cnt;
/* system init */
pll_init();
pause(0xffffff);
/* display init */
+ display_bl_toggle();
display_init();
contrast=0x38;
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<DISPLAY_RAM_CONTENT;cnt++)
- DISPLAY_DATA=button.key[0];
+ display_clear_screen();
break;
}
}