basic lcd control (must get improved!)
[my-code/arm.git] / betty / betty.c
index ed42475..e5923e9 100644 (file)
@@ -51,6 +51,7 @@ int main() {
        pause(0xffffff);
 
        /* display init */
+       display_bl_toggle();
        display_init();
        contrast=0x38;
 
@@ -81,10 +82,7 @@ int main() {
                                        DISPLAY_SET_CONTRAST(contrast);
                                        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;
                        }
                }