stupid mistake fixed, display basically working now!
[my-code/arm.git] / betty / betty.c
index e5923e9..163a8e2 100644 (file)
@@ -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();
@@ -81,6 +80,9 @@ int main() {
                                                contrast+=1;
                                        DISPLAY_SET_CONTRAST(contrast);
                                        break;
+                               case BUTTON_TV:
+                                       display_fill_screen(button.key[0]);
+                                       break;
                                default:
                                        display_clear_screen();
                                        break;