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";
40 button_set_retries(&button,100);
49 /* 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_fill_screen(button.key[0]);
87 display_clear_screen();