uart0_init();
/* display init */
- bl_init();
+ display_bl_init();
/* button init */
button_init(&button);
/* pause - seems to not work if running from flash! (?) */
pause(0xffffff);
+ /* display init */
+ display_init();
+
+ /* pasue again */
+
/* announce */
uart0_send_string(announce);
- /* toggle backlight */
- bl_toggle();
-
//addr=0x82000000;
- flash_sector_erase(BANK2,0);
- addr=FLASH_BANK2;
+ //flash_sector_erase(BANK2,0);
+ //addr=FLASH_BANK2;
+
+ DISPLAY_SET_C_ADDR(0);
+ DISPLAY_SET_PAGE_ADDR(0);
while(1) {
pause(0x0fffff);
if(button_get_event(&button)) {
uart0_send_string(announce);
if(button.key[0]==BUTTON_POWER) {
- bl_toggle();
- flash_write_buf(addr,(u16 *)announce,42);
- addr+=64;
+ DISPLAY_DATA=0xff;
+ DISPLAY_DATA=0xff;
}
}
}