2 * betty.c - alternative firmware for the betty tv ;)
4 * author: hackbard@hackdaworld.org
15 #define cc1100_init spi1_init(8,SPI_MASTER,8)
23 char announce[]="betty - live from flash at 0x80000000! ;)\r\n";
41 button_set_retries(&button,100);
50 /* pause - seems to not work if running from flash! (?) */
60 uart0_send_string(announce);
67 if(button_get_event(&button)) {
68 uart0_send_string(announce);
69 switch(button.key[0]) {
76 DISPLAY_SET_CONTRAST(contrast);
81 DISPLAY_SET_CONTRAST(contrast);
84 DISPLAY_SET_C_ADDR(0);
85 DISPLAY_SET_PAGE_ADDR(0);
86 for(cnt=0;cnt<DISPLAY_RAM_CONTENT;cnt++)
87 DISPLAY_DATA=button.key[0];