int main() { mSTAT = mSTAT_RSV_START; mPc.baud(9600 ); mPc.printf("#Start-main \n"); init_proc(); // int iWait=200; // int iMode=0; //0=temp, 1=time int iCt=0; while(1){ if(mSTAT != mSTAT_DISP){ proc_uart(); wait_ms(5); }else{ printf("#disp \n" ); string sBuff=""; sBuff=mReceive.substr(2,4); printf("sBuff=%s \n" ,sBuff.c_str() ); proc_dispTime(sBuff); wait_ms(100); display_rgb(iCt ); iCt =iCt +1; if(iCt >= 9 ){ iCt=0; } mSTAT =mSTAT_RSV_START; } } }
int bd_display(void) { #if defined(CONFIG_DISPLAY_OUT_RGB) INIT_VIDEO_SYNC(vsync); INIT_PARAM_SYNCGEN(syncgen); INIT_PARAM_MULTILY(multily); INIT_PARAM_RGB(rgb); display_rgb(CFG_DISP_OUTPUT_MODOLE, CONFIG_FB_ADDR, &vsync, &syncgen, &multily, &rgb); mdelay(50); #endif return 0; }
static void bd_disp_rgb(void) { #if defined(CONFIG_DISPLAY_OUT_RGB) struct nxp_lcd *lcd = nanopi2_get_lcd(); INIT_VIDEO_SYNC(vsync); INIT_PARAM_SYNCGEN(syncgen); INIT_PARAM_MULTILY(multily); INIT_PARAM_RGB(rgb); nxp_platform_disp_init(lcd, &vsync, &syncgen, &multily); display_rgb(CFG_DISP_OUTPUT_MODOLE, CONFIG_FB_ADDR, &vsync, &syncgen, &multily, &rgb); mdelay(50); printf("DISP: W=%4d, H=%4d, Bpp=%d\n", lcd->width, lcd->height, CFG_DISP_PRI_SCREEN_PIXEL_BYTE*8); #endif }