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 uart0_send_byte(contrast);
70 switch(button.key[0]) {
77 DISPLAY_SET_CONTRAST(contrast);
82 DISPLAY_SET_CONTRAST(contrast);
85 display_fill_screen(DISPLAY_FILL_W);
88 display_fill_screen(DISPLAY_FILL_LG);
91 display_fill_screen(DISPLAY_FILL_DG);
94 display_fill_screen(DISPLAY_FILL_B);
97 display_draw_rectangle(20,20,40,40,
102 display_draw_rectangle(50,50,40,40,
107 display_clear_screen();